Update a memory
update_memoryEdit an existing stored memory's content, tags, namespace, source, or TTL to correct changed facts. Refuses changes that would duplicate another memory in the target namespace.
Instructions
Edit an existing memory: content, tags, namespace, source or TTL.
Prefer this over storing a second, contradicting memory when a fact changes. A change that would make this memory an exact duplicate of another one in the target namespace is refused, and the error names the existing memory.
Returns the updated memory plus "updated_fields" listing what changed.
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": {
"memory_id": "<memory_id>"
},
"name": "update_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | New provenance note ("" = keep the current one). | |
| content | No | New content ("" = keep the current content). | |
| add_tags | No | Tags to add on top of the existing ones. | |
| ttl_days | No | -1 = leave the TTL unchanged, 0 = remove it (permanent), N > 0 = expire N days from now. | |
| memory_id | Yes | Id of the memory to update. | |
| namespace | No | Move the memory to this namespace ("" = keep). | |
| remove_tags | No | Tags to remove (case-insensitive). |