patch_note
Apply targeted edits to existing Obsidian notes: append, prepend, replace sections by heading, use regex substitutions, or update frontmatter keys.
Instructions
Perform fine-grained updates on an existing Obsidian note (append, prepend, replace under heading, regex patch, update frontmatter).
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>"
},
"name": "patch_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative note path or title | |
| append | No | Text to append to the end of the note body | |
| prepend | No | Text to prepend to the beginning of the note body | |
| patchRegex | No | Regex-based targeted substitution | |
| replaceSection | No | Replace or add an entire markdown heading section | |
| updateFrontmatter | No | Frontmatter keys to merge or update |