List Document Children
list_childrenLists the direct children of an AFFiNE document, including linked and synced docs, and returns each child's ID, title, URL, and trash status.
Instructions
List the direct children of a document in the sidebar (embed_linked_doc / embed_synced_doc blocks and inline LinkedPage references). Returns docId, title, URL, and inTrash for each child.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | The parent doc whose children to list. | |
| workspaceId | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| count | No | ||
| docId | No | ||
| error | No | ||
| details | No | ||
| children | No | ||
| causeCode | No | ||
| retryable | No | ||
| recoveryGuidance | No |