dir_tree
Create a visual directory tree with adjustable depth and ignore patterns to map folder structures and locate files.
Instructions
Generate a visual directory tree structure (like the tree command). Shows files and folders with configurable depth and ignore patterns.
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": {
"dir_path": "<dir_path>"
},
"name": "dir_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir_path | Yes | Absolute path to the directory | |
| max_depth | No | Maximum depth to traverse (default: 5, 0 = unlimited) | |
| ignore_patterns | No | Patterns to ignore (default: node_modules, .git, dist, __pycache__, .next, .cache, coverage) |