Edit Block
edit_blockReplace the content of a block tagged with ^id in an Obsidian note while keeping the trailing anchor, so existing transclusions and references to that paragraph or list item continue to resolve.
Instructions
Replace the content of a block tagged with ^id. The trailing ^id anchor is preserved on the last line of the new content so existing transclusions (![[note#^id]]) keep working. Use to update a single paragraph or list item that other notes reference.
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": {
"path": "<path>",
"block": "<block>",
"newContent": "<newContent>"
},
"name": "edit_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Vault-relative path to the note. | |
| block | Yes | Block id with or without the leading `^` (e.g. `myid` or `^myid`). | |
| newContent | Yes | Replacement content. The `^id` anchor is appended automatically. |