Save a memory
memory_writeRecords one durable fact: a decision, a stated preference, a constraint, a host or service detail, a convention. Content that names its subject and keeps the numbers, identifiers, paths, dates and the cause or reversal condition stays usable in six months, when a reader sees only the row. Each call stores one row; transient chatter or a file's contents stored here come back in every later search. The response can carry possible_conflicts, older facts close to the new one, and the new row is already stored either way. When one of them states the old version of the fact just written, a second call with the same content and supersedes set to that memory's id retires it in favour of the row the first call stored, which leaves one live row for the fact. The old row stays readable in memory_history. possible_conflicts can also list a different fact that only sounds similar. A row reads best as one fact in a few sentences. Several facts belong in several calls, and session narrative, reasoning and step-by-step history stay in the conversation. Content over 2000 characters is refused.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"content": "<content>",
"namespace": "<namespace>"
},
"name": "memory_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Short lowercase labels used for filtering later. | |
| share | No | company shares the row with the person's company. The rows colleagues need there are ones the person asked to share and decisions, conventions or facts about a shared system. Absent, the row is theirs alone until they share it. Refused outside a company workspace, and for private notes. | |
| content | Yes | The durable fact, self-contained, so it still makes sense in six months with no surrounding conversation. A fact that names its subject and keeps its numbers, identifiers, paths, dates and the cause or reversal condition it turns on stays usable; the trail of how it came to be believed adds nothing a later reader needs. | |
| namespace | Yes | 'user:me' for facts about the person, 'project:<slug>' for one codebase, 'global' for facts true everywhere, 'personal:<slug>' such as 'personal:finance' for a private area of life. 'credentials:<slug>' is not writable here: those hold client-encrypted items. | |
| supersedes | No | id of a memory this one replaces, when correcting a fact that changed. | |
| occurred_at | No | When this fact became true in the world. Two forms are accepted: a date, `2026-03-01`, read as midnight UTC, or a full RFC 3339 instant, `2026-03-01T09:30:00Z`. A bare month or year has no form here, so "since March" leaves the argument absent rather than carrying a day nobody stated. The argument holds a time that was stated rather than worked out: by the user, as in "we moved to Postgres 16 on 4 June 2026", or by the fact itself naming the day an event happened, as in "the regulator approved it on 19 August 2026". A date inferred from context is a guess the store then reports as fact. A stated time left out is lost: the row then reads as true since the store heard it. By default a date within the last day is refused unless the fact's text states it, because the store already records when it heard the fact, so today's date alone fails the write. A future date is refused. | |
| sensitivity | No | 'open' or 'private'. Raises the level above the namespace default and can never lower it, so passing 'open' for a namespace that classifies private changes nothing. |