memory_remember
Stores durable knowledge. By default it creates a fact; kind selects
another kind of memory. The server embeds the statement, folds a
paraphrase into the fact that already says the same thing, redacts PII
and checks for contradictions.
Arguments
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
statement | string | yes | The fact in one short sentence. 1 to 1000 characters. | |
subject | string | no | workspace | Who or what the fact is about, for example acme. |
kind | string | no | fact | fact, decision, episode, entity, strategy, workflow, skill, task, event or reasoning. An unknown value returns 400. |
subtype | string | no | Finer category, only for fact, decision and entity. A value outside the kind’s list is stored as other and reported in warnings. | |
confidence | number | no | 1.0 | 0 to 1. The default is the server’s. |
topicKey | string | no | Stable key for a topic, for example acme/language. A second write with the same key updates the active fact or decision instead of creating a new one. | |
scope | string | no | global | global, conversation or personal. personal needs a key bound to a user. |
scopeRef | string | no | Project or entity the memory belongs to. memory_recall can filter by it. | |
scopeOwner | string | no | Ownership level: workspace:<id>, user:<userId> or tenant:<tenantId>. | |
targetWorkspaceId | string | no | Store in a workspace other than the active one. You need write access there. | |
sessionId | string | no | Session the fact comes from. When the session closes, its facts are attached to the episode. | |
episodeId | string | no | Attach the fact to an episode that already exists. An unknown id does not fail the write; the response carries a warning. | |
agentId | string | no | Agent that originated the fact. | |
conversationId | string | no | Conversation id, for traceability. | |
idempotencyKey | string | no | On a retry with the same key, the server returns the original response instead of writing again. |
memory_suggest_topic_key derives a topicKey from the subject and the
attribute, so an updated value gets the same key.
Example
{
"name": "memory_remember",
"arguments": {
"statement": "Acme prefers communication in Spanish.",
"subject": "acme",
"topicKey": "acme/language",
"confidence": 0.9
}
}Returns
The stored fact, as the server returns it from POST /remember:
{
"id": "<fact id>",
"workspaceId": "<workspace id>",
"statement": "Acme prefers communication in Spanish.",
"confidence": 0.9,
"topicKey": "acme/language",
"status": "active",
"sensitivity": "internal",
"pinned": false,
"attribution": {},
"tags": ["fact"],
"validFrom": "2026-11-18T14:02:11.000Z",
"validTo": null,
"createdAt": "2026-11-18T14:02:11.000Z"
}statement is the text that was stored, which can differ from what you
sent. Four optional fields appear only when they apply:
conflict: the write contradicts existing facts.candidateslists each one with a suggestedaction(supersede,rejectorreview). WhenjudgmentRequiredis true, resolve them withmemory_judge.warnings: part of the request was stored differently from how it was sent, for example a substitutedsubtype.redactedCategories: PII was removed from the statement before storage. The original is not kept.embeddingDeferred: the embedding provider was unavailable. The fact is stored and searchable by keyword; semantic search and conflict detection wait for the embedding.
Notes
- One claim per call. Store two facts as two calls.
- Reusing an
idempotencyKeywith a different request returns 422. - With a read-only role the call returns 403.