update_section
Update specific sections of an Obsidian note by replacing, appending, prepending, or deleting content under a heading, and optionally create missing headings.
Instructions
Replace, append to, prepend to, or delete the content under a heading (replace/delete cover everything down to the next heading of the same or higher level, sub-headings included). With create_if_missing the heading is added (at the end, or under parent_heading).
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>"
},
"name": "update_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Note path ("Folder/Note.md"), path without .md, note name, alias, or [[wikilink]] | |
| mode | No | Default replace. delete removes the heading and its content. | |
| level | No | Level for a new heading (default 2) | |
| vault | No | Vault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian. | |
| content | No | ||
| heading | Yes | Heading text or "Parent > Child" | |
| create_if_missing | No |