du
Recursively estimate file and directory space usage and return per-directory byte counts as JSON. Identify space-consuming directories and files.
Instructions
Estimate file and directory space usage recursively as JSON. Read-only, no side effects (stat-only, does not write). Returns JSON with per-directory byte counts. Use to find space-consuming directories and files. Not for filesystem-level overview — use 'df' for mounted filesystem totals. See also 'df', 'stat'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| follow_symlinks | No | Follow symlinked directories. | |
| max_depth | No | Maximum recursion depth. | |
| paths | No | Paths to measure. Defaults to current directory. |