list_directory_tool
Lists the contents of a filesystem directory, optionally recursing into subdirectories, so AI tools can inspect available files and folders through Pathgate.
Instructions
List contents of a directory
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_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or relative path to the directory | |
| recursive | No | If True, list subdirectories recursively |