replace_in_note
Edits an existing note by swapping exact old text for new text; the change saves only when the old text appears once, preventing ambiguous updates.
Instructions
Change part of an existing note: replaces old_text with new_text. old_text must appear exactly once, or nothing is saved and the error says how many times it was found; call read_note first and copy it exactly. Name the note by path (best for several edits in a row, since it stays valid) or by a search or handed id. Use append_to_note to add at the end instead, and create_note for a new note. Needs Allow edits; each save makes a version, and the person can undo it in the app. Returns the saved path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | A search_notes or handed note id. Or leave empty and give path. | |
| path | No | The note's path, like 'Projects/plan.md'. It stays valid after edits, unlike a search id. | |
| folder | No | Which unlocked folder (its name, from status). Leave empty when only one is open. | |
| private | No | True only when the person asked, in this chat, for something in a folder they keep private. | |
| new_text | Yes | What to put in its place. | |
| old_text | Yes | Exact text now in the note (from read_note). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |