Get Orphan Documents
get_orphan_docsIdentify documents with no parent links in an AFFiNE workspace to locate orphaned content for cleanup.
Instructions
Find all documents that have no parent (not linked from any other doc via embed_linked_doc / embed_synced_doc blocks or inline LinkedPage references). Useful for workspace hygiene. Note: scans all docs — O(n). Each doc includes an inTrash flag.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceId | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| orphans | No |