Insert content at a heading or block
patch_noteInsert content into an Obsidian note relative to a heading, block reference, or frontmatter field without rewriting the entire note.
Instructions
Insert content relative to a heading, block reference, or frontmatter field — without rewriting the whole note. Example: append a bullet under '## Tasks' without touching the rest of the page.
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>",
"content": "<content>",
"operation": "<operation>",
"target_type": "<target_type>",
"target": "<target>"
},
"name": "patch_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| operation | Yes | How to insert relative to the target. | |
| target_type | Yes | What kind of anchor `target` refers to. | |
| target | Yes | Heading text (e.g. 'Tasks'), block id (e.g. 'block-id'), or frontmatter key (e.g. 'tags'). |