List Directory
list_directoryLists directory contents with per-entry type, size, mode, and modification time, supporting recursive traversal, hidden files, and entry limits for filesystem inspection.
Instructions
List directory contents with type, size, mode and mtime per entry.
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 (~ is expanded) | |
| recursive | No | walk the whole tree | |
| max_entries | No | cap on returned entries | |
| show_hidden | No | include dotfiles |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |