patch_note_text_tool
Find and replace text anywhere in a note's body using exact or regex matching, with optional dry-run preview and replace-all count. Handles scattered single-note edits without requiring heading or block anchors.
Instructions
Find and replace text anywhere in one note's body — no heading/block-ref
anchor required, unlike patch_note_tool. Cheaper than write_note_tool for
a scattered single-note edit (e.g. bumping one enum value inside a long note).
mode: 'exact' (default, literal substring) | 'regex'.
count: max replacements (default 1, first match only); 0 = replace all.
dry_run=True previews {replacements, preview, diff} without writing.
Raises ValueError if find doesn't match anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | ||
| mode | No | exact | |
| path | Yes | ||
| count | No | ||
| vault | No | ||
| dry_run | No | ||
| replace | Yes | ||
| expected_revision | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||