disks/list
Lists block devices as a tree, showing disks, partitions, and LVM/dm-crypt/RAID volumes nested under parent devices with sizes and mount points. Read-only.
Instructions
Lists block devices as a tree (like lsblk): disks, partitions, and LVM/dm-crypt/RAID volumes nested under the devices they are built on, with MAJ:MIN, RM, SIZE, RO, TYPE and MOUNTPOINTS, read from /sys/class/block (no lsblk needed). Read-only. Empty devices and RAM disks are hidden unless all: true; SIZE is in bytes unless human_readable. output_format: json (also yaml/table/wide) returns an object blockdevices, an array of objects (name, kname, maj:min, rm, size, size_bytes, ro, type, mountpoints) with nested children. In containerized deployments use privileged: true (needs a grant) to see the host's mount points. For free space or inodes use disks/free, for folder sizes disks/usage, for the mount table disks/mounts, for partition boundaries disks/partitions, for I/O counters disks/performance, for SMART disks/health.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Include empty devices and RAM disks (lsblk -a) | |
| privileged | No | Run as root - in containerized deployments, reads the host's mount table for MOUNTPOINTS | |
| output_format | No | Use json for structured output (yaml, table and wide return the same JSON); default is text | |
| human_readable | No | SIZE like lsblk (60G); default is bytes (lsblk -b) |