Update a memory
memory_updatePatch an existing memory by ID to update its content, type, scope, tags, or confidence. Automatically refreshes embeddings and snapshots the old version into history.
Instructions
Patch an existing memory by id — any subset of type/content/scope/tags/importance/confidence/source. Changing scope moves it between trees; a content change refreshes its embedding and snapshots the old version into memory_history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Memory id to update | |
| tags | No | Keywords that boost retrieval | |
| type | No | fact | preference | decision | constraint | instruction | role | entity | relationship | event | history | observation | |
| scope | No | 'global' for always-relevant memories, or a project path/id for project-scoped ones | global |
| trust | No | Trust classification; default derived from provenance (direct store → trusted, conversation digest → unverified) | |
| reason | No | Why this version supersedes the last — recorded in the history entry (plan §4.6) | |
| source | No | Originating session or client | |
| content | No | The memory itself, written as a standalone statement | |
| retention | No | Decay protection: decaying (default) | pinned (never decays + rank boost) | persistent (archivable, never auto-deleted) | neverExpire (fully exempt) | ephemeral (accelerated clock lands with 4.5.0; today behaves as decaying) | |
| confidence | No | Certainty of this claim 0..1, independent of importance (default 1.0 direct, 0.7 digests) | |
| importance | No | 1=minor, 5=critical (default 3) | |
| expectedVersion | No | Optimistic concurrency: update fails with CONFLICT (HTTP 409) unless the stored version matches |