File Tree
treeLists files and directories in the workspace, excluding blocked paths. Specify a relative directory, depth, and entry limits to inspect 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 default workspace. | |
| include_hidden | No | Include dotfiles/dotfolders that are not blocked. Default: false. |