Patch Note Section
obsidian_patchInsert, prepend, or replace note content by targeting headings, block references, or frontmatter fields.
Instructions
Insert, prepend, or replace content relative to a heading, block reference, or frontmatter field.
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>",
"targetType": "<targetType>",
"target": "<target>",
"operation": "<operation>",
"content": "<content>"
},
"name": "obsidian_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Vault-relative note path, e.g. Notes/idea.md | |
| target | Yes | Heading path (string or array of heading texts), block id, or frontmatter key. | |
| content | Yes | Markdown (or frontmatter string value) to apply. | |
| operation | Yes | ||
| targetType | Yes |