du
Analyze disk usage for a directory tree, showing size breakdowns per subdirectory and top N largest folders. Identify which subdirectories consume the most space.
Instructions
Show disk usage for a directory tree, broken down by subdirectory.
Wraps Sysinternals DU. Uses verbose (-v) output for per-directory breakdown.
Return Format
{"success": bool, "directories": list[dict], "total": dict, "error": str | None}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "du"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory path to analyze | |
| n_children | No | Show top N subdirectories by size (-n) | |
| accept_eula | No | Accept EULA (stored once) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||