File Tree
treeList files and directories within a workspace, filtered by depth and entry limits, while excluding blocked paths to reveal only accessible project structure.
Instructions
List files and directories inside the workspace, excluding blocked paths.
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": "tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory relative to workspace root. Default: . | |
| max_depth | No | Maximum depth. Default: 4. | |
| max_entries | No | Maximum entries. Default: 800. | |
| workspace_id | No | Workspace id from open_workspace. Omit to use the workspace selected for this MCP session. | |
| include_hidden | No | Include dotfiles/dotfolders that are not blocked. Default: false. |