Read Document Content
read_docRead document block content via WebSocket snapshot, returning blocks and plain text. 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. |