Store a memory
zenbrain_storeSave any statement, event, or instruction to long-term memory. Automatically routes general facts, episodes, and procedures so they persist beyond the current conversation.
Instructions
Write something into long-term memory so it survives this conversation. Routing is automatic by default: a general statement becomes a semantic fact, a narrated event becomes an episode, a sequence of instructions becomes a procedure. Set type only when you want to override that. Returns the id of the stored memory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Routing hint. 'auto' (default) decides from the content. | |
| steps | No | Ordered steps. Required when type is 'procedure'. | |
| tools | No | Tools a procedure uses. | |
| source | No | Where this came from, e.g. 'user', 'ai', 'import'. | |
| content | Yes | The memory to store, in plain language. | |
| context | No | Context domain, e.g. 'work', 'personal', 'learning'. | |
| outcome | No | What the procedure achieves. | |
| confidence | No | How certain this is (0–1). Above 0.9 routes to core memory. | |
| emotionalWeight | No | Emotional significance (0–1). Detected from the content when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Identifier of the stored memory. |