memo_update
Update a memory by replacing its entire body, performing a precise string edit, or appending a paragraph. Changes are versioned for rollback.
Instructions
Patch fields on a memory. content replaces the whole body;
replace_old+replace_new is a surgical exact-string edit (old must
occur exactly once — unchanged text stays byte-identical); append
adds a paragraph. All three are versioned (memo_version_rollback).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id or unique id prefix of the memory to patch. | |
| tags | No | Full replacement tag list (lower-cased, de-duplicated); None leaves tags unchanged. | |
| type | No | New memory type (must be a valid type, e.g. 'decision', 'fact'); None leaves it unchanged. | |
| title | No | New title; None leaves the title unchanged. | |
| append | No | Paragraph appended to the end of the body. Mutually exclusive with content and replace_old/replace_new. | |
| content | No | Full replacement body. Mutually exclusive with replace_old/replace_new and append. | |
| replace_new | No | Replacement text for replace_old. Pass together with replace_old. | |
| replace_old | No | Exact string to find in the body; must occur exactly once. Pass together with replace_new. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |