update_memory
Atomically edit a memory in-place to correct facts, update deadlines, or re-score importance. Preserves memory_id for referential integrity.
Instructions
Atomically edit an existing memory in-place. Preferred over forget+remember because it preserves memory_id, which matters for session_file_edits links and referential integrity. Use to correct facts, update deadlines in goal entries, refine caveats, or re-score importance. Caveat-layer memories can be updated but cannot have their protected flag removed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memory_id | Yes | The memory.id to update | |
| content | No | New content (plain text or JSON). If omitted, content is kept. | |
| layer | No | Move to a different layer (aliases accepted). If omitted, layer is kept. | |
| importance | No | New importance 0-1. Set to 0.9 or higher to pin. |