list_directory
List directory contents with file names, types, and sizes to inspect project structure or locate specific files within allowed paths.
Instructions
Lists the contents of a directory: file/directory names, types, and sizes.
Path must be within allowed roots (~/Projects, ~/Documents).
Use this when investigating directory contents, checking project structure,
or looking for specific files. Does not modify system state.
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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |