Doco Patch Block
doco_patch_blockUpdate a block in a collaborative document by replacing the whole node or patching attrs/content, with optimistic concurrency versioning to avoid overwrites.
Instructions
更新单个块:提供完整 node 替换,或用 attrs/content 局部修改。带 base_version 做乐观并发校验;不带则自动读取最新版本。409 时请重读合并重试。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | No | 完整替换的 tiptap 节点 | |
| attrs | No | 合并进现有 attrs 的字段 | |
| content | No | 替换块的子内容 | |
| block_id | Yes | Stable block ID within the target document. | |
| document_id | Yes | Target document ID. | |
| base_version | No | 读取时拿到的 version(强烈建议提供) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||