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 时请重读合并重试。
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": {
"document_id": "<document_id>",
"block_id": "<block_id>"
},
"name": "doco_patch_block"
}
}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 | |||