Replace Text
replace_textReplace exact text in a specific Obsidian note without overwriting the whole file. Control multiple matches with expectedOccurrences or replace all.
Instructions
Replace exact text in one note without overwriting the full note. Multiple matches require all: true or an exact expectedOccurrences guard.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Replace every match (default false). | |
| find | Yes | Exact text to find. | |
| path | Yes | Existing note path, title, or alias. | |
| replace | Yes | Replacement text; may be empty. | |
| expectedOccurrences | No | Abort unless this many matches exist. |