Disk usage
duMeasure disk usage for specified paths and return path-size pairs, with maxDepth controlling summary depth for structured CLI output.
Instructions
Show disk usage for paths. Returns entries as [path, sizeBytes] pairs, in the order du emits them. Use maxDepth to control how deep the summary goes.
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 | Path to measure | |
| maxDepth | No | Depth to summarize |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | Yes | ||
| retained | No |