File Tree
treeList files and directories in a workspace directory to explore its structure, with configurable depth, entry limits, and hidden-file inclusion while excluding blocked paths.
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 | Optional workspace id. When omitted, CodexPro binds the authoritative conversation workspace automatically; an explicit unknown or mismatched id is rejected. | |
| include_hidden | No | Include dotfiles/dotfolders that are not blocked. Default: false. | |
| conversation_id | No | Connector conversation id bound to this workspace. Modern MCP injects it automatically; side-effecting tools require it to match the authoritative binding. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool_result | Yes |