List Workspace Tree
list_workspace_treeGet the full document hierarchy of an AFFiNE workspace as a tree, showing nested documents and trash status. Use depth to limit nesting for faster results.
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 |
|---|---|---|---|
| tree | No | ||
| rootCount | No | ||
| totalDocs | No | ||
| workspaceId | No |