Edit a passage in a note
edit_noteReplace one exact passage in a note's body with new text while keeping the rest unchanged; correct or update existing note content without rewriting the whole note.
Instructions
Replace one exact passage of a note's body with new text; the rest of the note stays as it was. old_text must appear exactly once (copy it from read_note, with enough surrounding words to be unique) unless replace_all is set. The safe way to correct or update existing text, in a note of any size; prefer it to replace_note_body.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ref": "<ref>",
"old_text": "<old_text>",
"new_text": "<new_text>"
},
"name": "edit_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Note path, title, or alias | |
| new_text | Yes | The text to put in its place (may be empty to delete it) | |
| old_text | Yes | The exact passage to replace, copied from the note's body | |
| replace_all | No | Replace every occurrence instead of requiring exactly one |