mnemostack_remember
Store a tenant-scoped memory with server-side embedding. Deterministic source/offset/text IDs make retries return duplicate, and chunked mode saves long documents as recallable chunks.
Instructions
Store a memory for the caller's tenant (the write counterpart of mnemostack_search).
A write tool: requires the write scope, embeds server-side, and
stamps the process key's tenant so the memory lands in — and is
recallable from — exactly this tenant's scope. Ids are deterministic
from (source, offset, text): retries and repeated content return
duplicate without a second embedding call. Long documents pass
chunk=true and yield one result per chunk. Use
mnemostack_invalidate to retract a stored memory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional tags stored in the payload. | |
| text | Yes | The memory content to store. Embedded server-side. Plain items are capped at 32768 characters; longer documents need chunk=true. | |
| chunk | No | Split a long document server-side into the same fixed character windows `mnemostack index` uses (identical chunk ids). Requires a non-empty source. | |
| offset | No | Position within `source` for multi-part documents. | |
| source | No | Logical origin (e.g. 'chat/2026-08-19'). With `offset` it forms the deterministic id: re-sending the same content is a no-cost duplicate, never a second copy. | |
| metadata | No | Free payload fields, filterable at recall. Server-reserved keys (underscore-prefixed, structural ones like tenant_id/source, tags/timestamp — use their dedicated parameters — and the lifecycle marker invalidated_at, settable only via mnemostack_invalidate) are rejected. | |
| timestamp | No | Event time of the content (ISO-8601); drives temporal recall. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||