rename_heading
Rename a heading in an Obsidian note and update all [[note#heading]] links and embeds across the vault. Preserves aliases and leaves fenced code blocks unchanged.
Instructions
Rename a heading in a note and rewrite every [[note#heading]] wikilink and embed across the vault so references keep working — aliases preserved, fenced code blocks left alone. Served from the warm backlink index, no vault scan. Heading matching is case-insensitive; with duplicate headings the first match wins, mirroring Obsidian link resolution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Vault-relative path of the note containing the heading. | |
| prevHash | No | Optional compare-and-swap guard: the contentHash from a prior read. Fails with hash_conflict if the note changed since. | |
| newHeading | Yes | New heading text, without # markers. Must not contain newlines, "[", "]", "|", or "#". | |
| oldHeading | Yes | Current heading text, without # markers. Case-insensitive; first match wins. |