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.
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": "get_doc"
}
}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 |