Get the structure of a directory.
list_directoryList the contents of a directory, either surface level or recursively, with control over depth. Results are truncated if they exceed 500 items.
Instructions
To read the structure inside a directory, either surface level or recursively. Results will be truncated if they exceed 500.
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": {
"directory_path": "<directory_path>"
},
"name": "list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| recursively | No | ||
| directory_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |