List Directory
file_listList directory contents with file name, type, size, and modification time. Optionally recurse into subdirectories with a configurable depth limit and path access controls.
Instructions
List a directory's entries: name, type, size, modification time. Optionally recursive with a depth cap. Path is checked against MACCTL_ALLOWED_PATHS/MACCTL_DENIED_PATHS.
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": "file_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory to list. | |
| depth | No | Max recursion depth when recursive. Defaults to 5. | |
| recursive | No | Recurse into subdirectories. Defaults to false. | |
| maxEntries | No | Cap on total entries returned. Defaults to 2000. |