diskutil_list
List all disks and partitions on macOS systems to view storage configuration and identify available drives.
Instructions
List all disks and partitions using diskutil list.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- macos_tools_mcp/server.py:23-24 (handler)MCP tool handler function that delegates execution to the underlying tools.diskutil_list() implementation.def diskutil_list(_: Context | None = None) -> str: return tools.diskutil_list()
- macos_tools_mcp/server.py:19-22 (registration)Registers the 'diskutil_list' tool with the FastMCP app, including name and description (implicit schema: no inputs, str output).@app.tool( name="diskutil_list", description="List all disks and partitions using `diskutil list`.", )
- macos_tools_mcp/tools.py:66-68 (helper)Core implementation that executes the 'diskutil list' shell command via _run_command helper.def diskutil_list() -> str: """Return the output of ``diskutil list`` for disk overview.""" return _run_command(["diskutil", "list"])