List a folder
list_directoryList files and folders with optional recursive traversal, depth limits, and hidden-file visibility so you can inspect directory contents within the configured root.
Instructions
Lists files and folders. Paths can be relative to the server's root folder. Supports recursive traversal.
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 path (defaults to root) | . |
| max_depth | No | Traversal depth when recursive=true | |
| recursive | No | Traverse nested folders | |
| show_hidden | No | Show hidden files (names starting with a dot) |