Save memory
memory_upsertCreates a memory for one entity (person, project, decision, topic...) or updates the memory with the same title. Replacing the body of an existing memory by id requires mode "replace". Use when the user shares a durable fact worth keeping.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Existing memory id to update. Omit to create or update by title. | |
| body | No | Markdown body with ## sections; [[Title]] links to other memories. | |
| mode | No | Set to "replace" to overwrite the body of an existing memory id. | |
| tags | No | ||
| type | Yes | Memory type, e.g. person, project, decision, topic. | |
| brain | No | Brain id or name. Defaults to the active brain. | |
| links | No | ||
| title | Yes | Memory title; one entity per memory. | |
| trust | No | Where the fact comes from: user, source or inferred. | |
| concept | No | Topic (concept) name. | |
| shallow | No | ||
| confirmed | No | ||
| confidence | No | ||
| subconcept | No | ||
| supersedes | No | ||
| externalRefs | No | Source links for the facts in this memory. | |
| userConfirmed | No | ||
| contradictionAck | No |