Store memory
rememberStore durable facts, decisions, or preferences as persistent memories; omit an id to create a new entry or supply one to replace an existing memory.
Instructions
Store a durable fact, decision or preference; use recall to find one instead. A supplied id replaces that memory, while an omitted id creates a new one. Use if_version to reject concurrent changes or create_only to reject overwrites.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Stable id; replaces an existing memory with this id. | |
| tags | No | Labels; filters match memories carrying every listed tag. | |
| text | Yes | UTF-8 memory content; must be nonblank unless `allow_empty` is true. The server also enforces a byte limit and a 4,096-word limit. | |
| title | No | Optional display title; does not change the id. | |
| metadata | No | Arbitrary JSON object; keys starting with "hms." are reserved. | |
| if_version | No | Version from `remember` or `get`; write only if the stored version still matches. Cannot combine with `create_only`. | |
| allow_empty | No | Permit blank text for file-like use; otherwise blank text is rejected. | |
| create_only | No | Reject the write if the chosen id already exists; cannot combine with `if_version`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the stored memory. | |
| bytes | Yes | Stored text size in UTF-8 bytes. | |
| created | Yes | True when this call created an id. | |
| version | Yes | New version for a later conditional update. | |
| namespace | Yes | Store namespace used for the write. |