list_directory
List directory contents with file sizes and types, showing [DIR] and [FILE] entries within a sandbox.
Instructions
List the contents of a directory with file sizes and types.
Returns a formatted tree showing [DIR] and [FILE] entries with sizes. Respects the allowed_directories sandbox.
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 | Absolute path to the directory to list. | |
| recursive | No | Set to true to list subdirectories recursively. Default false. | |
| max_depth | No | Maximum recursion depth when recursive=true. Default 3. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |