get_directory_tree
Create a visual tree of a directory's files and folders, with configurable maximum depth and optional size inclusion.
Instructions
Get a visual tree representation of a directory structure, similar to the 'tree' command.
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": "get_directory_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Relative path within the file server root. Empty string for root. | |
| maxDepth | No | Maximum depth to traverse (default: 3, max: 10). | |
| includeSizes | No | Include file/directory sizes in output (default: false). |