edit_note
Edit part of an existing note by replacing one exact piece of text instead of resending the whole note. The old text must match exactly once or nothing is written.
Instructions
Edit part of an existing note by replacing one exact piece of text, without resending the whole note. old_str must match the note content (as returned by get_note) exactly once, including whitespace and line breaks; otherwise nothing is written. To edit a section, include its heading in old_str. Prefer this over create_note for changes to existing notes.
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": {
"path": "<path>",
"old_str": "<old_str>",
"new_str": "<new_str>"
},
"name": "edit_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the existing note | |
| new_str | Yes | Replacement text. Use an empty string to delete old_str. | |
| old_str | Yes | Exact text to replace. Must appear exactly once in the note; add surrounding lines if needed to make it unique. |