get_disk_usage
Check disk usage per partition and flag any above a warning threshold. Optionally inspect a specific mount point; read-only mounts are listed but never flagged.
Instructions
Get disk usage per partition, flagging any above a warning threshold.
Read-only mounts are listed but never flagged, since space cannot be reclaimed on them (Linux snap squashfs mounts sit at 100% by design).
Returns: str: Markdown summary or JSON object with keys: partitions (list of {mountpoint,device,fstype,total_gb,used_gb,percent,read_only,warning}), warnings (count), warn_percent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Specific mount point or path to inspect (e.g. '/', '/var'). Omit to list all mounted partitions. | |
| warn_percent | No | Usage percentage above which a partition is flagged as WARNING. | |
| response_format | No | 'markdown' for human-readable output, 'json' for structured data. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |