replace_in_note
Find and replace text in a note body with options for regex, case sensitivity, whole-word matching, replacement limit, and dry-run mode to preview changes before writing.
Instructions
Find and replace text within a note body. Supports literal and regex search, case sensitivity, whole-word matching, and a replacement limit. Frontmatter is never touched. Use dryRun to preview matches before writing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Vault-relative path to the note. | |
| find | Yes | Text or pattern to find. | |
| replace | Yes | Replacement text. Supports $1, $2, … backreferences in regex mode. | |
| regex | No | Treat find as a regular expression. Default false. | |
| caseSensitive | No | Case-sensitive matching. Default false. | |
| wholeWord | No | Match whole words only (\b boundary). Default false. | |
| limit | No | Maximum number of replacements. Omit to replace all. | |
| dryRun | No | If true, report matches without writing. Default false. |