Rename Tag
rename_tagRenames a tag across every note in an Obsidian vault, updating inline #tags and frontmatter tags fields, with hierarchical sub-tag rebasing and an optional dry-run preview.
Instructions
Rename a tag everywhere it appears across the vault, in both inline #tags and frontmatter tags: fields. Non-dry-run rewrites require confirmTag to match the new tag name. With hierarchical: true (default), nested tags also rebase: renaming project to client also renames project/alpha → client/alpha. With dryRun: true, returns the planned counts without writing. Strip the leading # from oldName/newName — they're tag names, not tag tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | If true, count matches without modifying any notes. | |
| newName | Yes | New tag name (without leading #), e.g. 'client'. | |
| oldName | Yes | Existing tag name (without leading #), e.g. 'project'. | |
| confirmTag | No | Required when dryRun is false: re-type the new tag name to confirm vault-wide tag rewriting. | |
| hierarchical | No | Also rename nested sub-tags (default: true). |