tree
Display a directory tree view up to a specified depth, with options to include hidden files and adjust recursion depth (1–10).
Instructions
Return a directory tree view up to a specified depth.
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": "tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Root directory for the tree. Defaults to cwd. | . |
| max_depth | No | Maximum depth to recurse (1–10). Default: 3. | |
| show_hidden | No | Include hidden files and directories. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||