List Workspace Tree
list_workspace_treeRetrieve a workspace's document hierarchy as a nested tree, with depth control and trash-status flags, to inspect structure and parent-child document relationships.
Instructions
Returns the full document hierarchy as a tree (roots → children → grandchildren). Use depth to limit nesting (default: 3). Note: loads all docs — may be slow on large workspaces. Each node includes an inTrash flag.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Max nesting depth to return (default: 3, maximum: 20). | |
| workspaceId | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| tree | No | ||
| error | No | ||
| details | No | ||
| causeCode | No | ||
| retryable | No | ||
| rootCount | No | ||
| totalDocs | No | ||
| workspaceId | No | ||
| recoveryGuidance | No |