Update block
update_blockReplace an existing block's content with new Markdown, optionally locking the block type. Retrieve the block ID first using get_block or search_notes.
Instructions
Replace the content of an existing block with new Markdown. The block type may change (e.g. a paragraph into a heading) unless lock_type is true. Get the ID from get_block or search_notes first.
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": {
"id": "<id>",
"data": "<data>"
},
"name": "update_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Block ID to replace. | |
| data | Yes | New Markdown content for the block. | |
| lock_type | No | When true, refuse the update if the parsed block type differs from the original. |