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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"docId": "<docId>"
},
"name": "list_children"
}
}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 |