list_directory
Lists files and directories at a specified path sandboxed to the home directory, optionally including file sizes and modification times.
Instructions
List files and directories at a path (sandboxed to home directory)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory path (absolute or ~/relative) | |
| details | No | Include file sizes and modification times (default false) |