Edit note
edit_noteUpdate existing Obsidian notes in place: append or prepend content, replace all occurrences of text, or swap a section under a heading.
Instructions
Edit an existing note in place. Modes: 'append'/'prepend' content (prepend lands after frontmatter); 'find_replace' all occurrences of find→replace (fails if find is absent); 'replace_section' swaps everything under heading (subsections included) for content.
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>",
"mode": "<mode>"
},
"name": "edit_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | No | Text to find (find_replace) | |
| mode | Yes | ||
| path | Yes | Vault-relative note path | |
| content | No | Text for append/prepend/replace_section | |
| heading | No | Exact heading text (replace_section) | |
| replace | No | Replacement text (find_replace) |