Get Document
get_docRetrieves GraphQL metadata for an AFFiNE document—title, summary, public state, roles, and timestamps—so you can inspect document properties without loading block content.
Instructions
Read GraphQL metadata for one document, such as title, summary, public state, roles, and timestamps. Use read_doc when you need block content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | AFFiNE document id. | |
| workspaceId | No | AFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| ok | No | ||
| code | No | ||
| error | No | ||
| value | No | ||
| details | No | ||
| causeCode | No | ||
| retryable | No | ||
| recoveryGuidance | No |