list_dir
List files and sub-folders within a directory. Provide an absolute or relative path to view its contents.
Instructions
List the entries (files and sub-folders) of a directory inside a granted root.
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_dir"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a directory inside a granted root (or a path relative to a root). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |