heading.replace_body
Replace the body text under a heading in an Obsidian note, using a section hash to prevent edit conflicts. Errors if heading is missing or ambiguous.
Instructions
Replace the BODY beneath a heading (not the heading line itself). Errors if heading missing or path is ambiguous. Requires expected_section_hash from heading.find/outline.
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": {
"file": "<file>",
"heading": "<heading>",
"content": "<content>",
"expected_section_hash": "<expected_section_hash>"
},
"name": "heading.replace_body"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| vault | No | ||
| content | Yes | ||
| dry_run | No | ||
| heading | Yes | ||
| delimiter | No | ||
| expected_section_hash | Yes |