disks/free
Reports disk space for the filesystem holding an absolute path, including total, used, free bytes and use percent. Supports human-readable sizes and inode counts; read-only.
Instructions
Reports space on the ONE filesystem holding path (statfs, like df for a single path): total, used and free bytes and use percent (human_readable for GiB). Read-only; path must be absolute. It does not name the device or mount point: use disks/mounts for that, disks/list for block devices, disks/usage to see which folders use the space. There is no all-filesystems mode; call it once per mount point. free is what non-root users can use, and used is total minus that. inodes: true returns inode counts as plain text and ignores output_format and human_readable. Text output is three lines; output_format: json returns an object (path, total_bytes, used_bytes, free_bytes, use_percent, plus total_human, used_human, free_human with human_readable). privileged: true (a grant, and a paths: entry for root) only for paths you cannot stat.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to check | |
| inodes | No | Report inode counts instead of block usage (-i); the reply is always plain text and ignores output_format and human_readable | |
| privileged | No | Run as root. Needs a grant for this tool in mcp-sudo.yaml and a `paths:` entry covering the path, otherwise refused | |
| output_format | No | Use json for structured output (yaml, table and wide return the same JSON); default is text | |
| human_readable | No | Sizes like 53.2 GiB (df -h); default is bytes |