Replace Text
replace_textReplace exact text in a single note without overwriting the entire content. Supports replacing all occurrences or verifying match count before proceeding.
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. |