List Directory
list_directoryLists folder contents with optional recursion and returns compact lines showing folders and file sizes. Use it to inspect remote directory structure and filter entries before reading files.
Instructions
List a folder (optionally recursive). Returns compact lines: 'd name/' for folders, 'f name size' for files.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Folder to list. Empty or '.' = server root. | . |
| depth | No | 1 = only this folder; 2+ = recurse that many levels (max 10). | |
| pattern | No | Optional name filter glob, e.g. '*.py'. Folders are always shown when recursing. | |
| skip_heavy | No | When recursing, don't descend into node_modules, .git, venvs, build dirs. | |
| max_entries | No | Stop after this many entries. | |
| show_hidden | No | Include dotfiles. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||