vault_patch
Patch an Obsidian note's heading, block, or frontmatter only when an exact-byte ifMatch version from a prior read or map matches; no automatic retry.
Instructions
Patch a heading/block/property with exact-byte ifMatch from a read/map. Copy map keys unchanged. Heading content uses relative levels. No automatic retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| scope | No | ||
| value | No | ||
| target | Yes | ||
| within | No | ||
| content | No | Heading target without within: # is a child in content scope, a sibling with markerAndContent prepend/append. | |
| ifMatch | Yes | ||
| operation | Yes | ||
| targetType | Yes | ||
| destination | No | Heading move only: operation=replace, scope=parent; omit content. | |
| createTargetIfMissing | No | ||
| rejectIfContentPreexists | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| created | Yes | ||
| message | Yes | ||
| version | Yes | ||
| warnings | No | ||
| sizeBytes | Yes |