Edit block source
block_updateEdit a block's SOURCE content (Slate JSON). Note: edits live on the block, not in the stored source file — a later document_resync_source re-parses the file and overwrites them.
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": {
"block_id": "<block_id>",
"original_content": "<original_content>"
},
"name": "block_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block_id | Yes | Block id (blocks[].id in document_content_get, format json). | |
| block_type | No | Block type, e.g. paragraph, heading_1, bulleted_list; omit to keep the current one. | |
| original_content | Yes | The new source content as Slate JSON: an array of element nodes, e.g. [{"type":"paragraph","children":[{"text":"Hello"}]}]. Read the current value with document_content_get (format json). |