list_directory
List directory contents to view files and subdirectories. Supports simple or detailed output, and can include hidden files.
Instructions
Lists the contents of a directory, showing both files and subdirectories.
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 | Path to the directory to list. Can be absolute, relative to active directory, or use ~ for home directory. | |
| format | No | Format of the output: simple (names only) or detailed (with file information) | |
| showHidden | No | If true, include hidden files (starting with .) |