getFileTree
Retrieve a filtered workspace file tree that respects .gitignore and skips common build artifacts. Optionally specify subdirectory, depth, hidden files, and entry limit.
Instructions
Workspace file tree. Respects .gitignore. Skips node_modules, .git, dist, build, coverage.
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": "getFileTree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxDepth | No | Maximum directory depth (default: 3, max: 10) | |
| directory | No | Subdirectory to list (relative to workspace, default: root) | |
| maxEntries | No | Max entries to return (default: 500, max: 2000) | |
| includeHidden | No | Include hidden files/dirs (default: false) |