patch_frontmatter
Modify frontmatter keys in Obsidian notes without reordering existing keys or changing quote style. Pass null to delete a key, with optional hash-based conflict checking.
Instructions
Set, update, or delete frontmatter keys without reordering existing keys or changing quote style. Pass null as a value to delete a key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Vault-relative path to the note. | |
| patch | Yes | Key-value pairs to set. Null value removes the key. | |
| prevHash | No | Optional compare-and-swap guard: the contentHash from a prior read. Fails with hash_conflict if the note changed since. |