tree
Display a visual tree of directory contents up to a specified depth, enabling quick exploration of file hierarchies.
Instructions
Show a tree of the directory structure up to a given 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 to display (default: current directory). | . |
| depth | No | How many levels deep to show (clamped to 0-5). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |