Skip to Content
ReferenceToolsdisk_usage

disk_usage

How much disk the AI agents and developer caches use, per folder, and how much a clean would free. Reads sizes and times only; changes nothing.

Arguments

Over MCP every tool also takes machine: the machine’s name or id, optional when only one machine is online.

NameTypeRequiredMeaning
older_than_daysintegernoCount only files unchanged for at least this many days. It can only raise an item’s own age.
targetsstring[]noagent:<id> for one agent’s own files (agent:claude-code), cache:<id> for a developer cache no agent owns (cache:cargo, cache:npm, cache:pnpm). Absent: every one known.

Result

NameTypeRequiredMeaning
bytesintegeryesBytes on disk of every item measured.
cleanable_bytesintegeryesOf those, what a clean would free.
targetsobject[]yes
truncatedbooleanyesThe walk stopped at its limit of files or time: the numbers are a lower bound.

Examples

{ "name": "disk_usage", "arguments": { "machine": "<machine>" } }

Limits

The call times out after 90 s (timed_out). Available since version 0.1.13. A refused or failed call returns one of the error codes.