directory_tree
Recursively map a directory's contents into a tree view while skipping node_modules and .git, with optional depth limits to inspect project structure.
Instructions
Recursively build a tree view of a directory's contents (skips node_modules and .git).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "directory_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_depth | No | Maximum recursion depth, default 5 |