list_dir
Lists files and subdirectories in an allowed local directory, with an optional entry limit, to inspect folder contents and verify paths before further actions.
Instructions
List files and subdirectories in an allowed local 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": {
"dirPath": "<dirPath>"
},
"name": "list_dir"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dirPath | Yes | Absolute directory path | |
| maxEntries | No |