Store a memory
zenbrain_storeStore a memory into long-term memory so it survives the conversation. Routing is automatic: steps become procedures, emotional content episodes, and high-confidence content cores.
Instructions
Write something into long-term memory so it survives this conversation. Routing is automatic by default: steps or instructions become a procedure; content with an emotional weight above 0.5 (detected, or set via emotionalWeight) becomes an episode; a confidence above 0.9 makes it a pinned core memory; anything else becomes a semantic fact. Set type only when you want to override that. Every call adds a new memory, except that storing the same core memory again updates it; the content is also kept in working memory while the server runs. Returns the id of the stored memory. If it may already be stored, check with zenbrain_recall first: storing it again adds a duplicate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Routing hint. 'auto' (default) decides from the content. | |
| steps | No | Ordered steps of a procedure. Optional: without them the steps are taken from the content (numbered or bulleted lines, otherwise every line). | |
| 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. Above 0.5 routes to episodic memory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Identifier of the stored memory. |