diskutil_list
List all disks and partitions on macOS systems to view storage device information and partition layouts for system diagnostics and management.
Instructions
List all disks and partitions using diskutil list.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- macos_tools_mcp/tools.py:66-68 (handler)Core handler function that runs the 'diskutil list' command via subprocess and returns its stdout.def diskutil_list() -> str: """Return the output of ``diskutil list`` for disk overview.""" return _run_command(["diskutil", "list"])
- macos_tools_mcp/server.py:19-24 (registration)FastMCP tool registration decorator and thin wrapper that delegates to tools.diskutil_list() implementation.@app.tool( name="diskutil_list", description="List all disks and partitions using `diskutil list`.", ) def diskutil_list(_: Context | None = None) -> str: return tools.diskutil_list()