disks/mounts
Lists mounted filesystems with device, mount point, type, and options, optionally filtered by filesystem type. Use privileged mode in containers to see host mounts.
Instructions
Lists mounted filesystems (device, mount point, type, options) from /proc/thread-self/mounts, sorted by mount point. Read-only. fs_type filters by exact type (ext4, overlay, tmpfs; no globs). It reads the daemon's own mount namespace, so in a container use privileged: true (needs a grant) to get the host's mounts. Text lines look like /dev/sda1 on /mnt type ext4 (rw,...); output_format: json returns an array of objects (device, mount_point, fs_type, options), or null rather than [] when nothing matches (text is then empty). For block devices use disks/list, for the space used on a mount disks/free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fs_type | No | Exact filesystem type, no globs (e.g. 'ext4', 'overlay', 'tmpfs') | |
| privileged | No | Run as root. Needs a grant for this tool in mcp-sudo.yaml, otherwise refused | |
| output_format | No | Use json for structured output (yaml, table and wide return the same JSON); default is text |