Get Directory Tree
fs_treeGenerates a project directory tree view, skipping node_modules, .git, and build folders by default, so AI agents can grasp code structure with one call.
Instructions
快速生成项目目录树视图(自动跳过 node_modules、.git、dist 等构建目录),方便 AI 一键把握代码结构。
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": "fs_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 目标根目录路径 | |
| maxDepth | No | 最大展开深度 | |
| maxNodes | No | 最大节点数 | |
| excludeDirs | No | 额外排除的目录名 | |
| includeHidden | No | 是否包含隐藏文件 |