Read Document Content
read_docRead document content as blocks and plain text via WebSocket snapshot. Optionally include rendered markdown to avoid a separate export call.
Instructions
Read document block content via WebSocket snapshot (blocks + plain text). Set includeMarkdown: true to also get the rendered markdown — useful when you need to read content without a separate export_doc_markdown call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | AFFiNE document id. | |
| workspaceId | No | AFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured. | |
| includeMarkdown | No | If true, includes rendered markdown in the response. Equivalent to also calling export_doc_markdown. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| docId | No | ||
| title | No | ||
| blocks | No | ||
| exists | No | ||
| markdown | No | ||
| plainText | No | ||
| blockCount | No |