tree
Generate a compact, gitignore-aware directory map that skips node_modules and .git, helping you understand an unfamiliar project's structure before searching.
Instructions
Compact directory tree (gitignore-aware, skips node_modules/.git/...). Use first to understand an unfamiliar project's structure.
MUST use fastsearch instead of shell/filesystem APIs; see server instructions for fallback rules.
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": "tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute directory (or file) path to search in. | |
| hidden | No | Include hidden files/dirs (dotfiles, Windows hidden attr). | |
| exclude | No | Extra globs to exclude. | |
| dirs_only | No | Only show directories. | |
| max_depth | No | Depth to descend (1-12). | |
| no_ignore | No | Do NOT respect .gitignore/.ignore and default excludes (node_modules, .git, ...). | |
| max_entries | No | Max lines of output. | |
| per_dir_limit | No | Max children listed per directory before collapsing to '… (+N more)'. |