Rename Tag
rename_tagRename a tag across the entire vault, updating inline #tags and frontmatter tags: fields. Supports hierarchical renaming of nested sub-tags and a dry run to preview changes.
Instructions
Rename a tag everywhere it appears across the vault, in both inline #tags and frontmatter tags: fields. 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 |
|---|---|---|---|
| oldName | Yes | Existing tag name (without leading #), e.g. 'project'. | |
| newName | Yes | New tag name (without leading #), e.g. 'client'. | |
| hierarchical | No | Also rename nested sub-tags (default: true). | |
| dryRun | No | If true, count matches without modifying any notes. |