Replace a note
memory_replaceRetire outdated notes by replacing them with a newer note while keeping the old ones recoverable. Preview the change, confirm with a single-use code, or undo a replacement.
Instructions
Retire outdated notes in favour of a newer one; they stay recoverable. Three actions. preview (old_ids, plus new_id or new_title and new_body): changes nothing and returns a warning and a code; show the warning to the person and wait for yes. confirm: pass that code with the same new_* values; the code works once, expires, and fails if any note changed since the preview. undo (id): bring a replaced note back. To change one note's text, use memory_save with id.
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": {
"action": "<action>"
},
"name": "memory_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | undo: the replaced note. | |
| code | No | confirm: the single-use code the preview returned. | |
| action | Yes | preview, confirm or undo. | |
| new_id | No | An existing note that takes their place. Or give new_title and new_body to create one instead. | |
| old_ids | No | Ids of the out-of-date notes. | |
| new_body | No | Text of that new note. | |
| new_title | No | Title of a new note to create in their place. |