Edit a note
edit_noteReplace one exact piece of a note's text. old_text must appear exactly once in the current note; include enough surrounding text to make it unique. To rewrite the whole note, pass its full current text (from fetch) as old_text. Example: old_text "- [ ] milk", new_text "- [x] milk" ticks off milk. The note keeps its place in the list; if it should also go back to the top, call rescue_note after. If old_text isn't found, fetch the current text and copy the exact passage to replace. If it matches more than once, include more of the surrounding text.
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": {
"note_id": "<note_id>",
"old_text": "<old_text>",
"new_text": "<new_text>"
},
"name": "edit_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note_id | Yes | The note's ID (a UUID) from search, list_notes or fetch. | |
| new_text | Yes | What it becomes. Empty removes it. | |
| old_text | Yes | Exact text to replace, copied from the note. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| outcome | Yes | unchanged: the note was already like that, so nothing was written. |