list_directory
List files and directories at a specified path. Optionally list recursively and set the workspace root.
Instructions
List files and directories at a given path.
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 | |
| recursive | No | Whether to list recursively (default false) | |
| workspace_root | No | Workspace root directory (optional) |