save_memory
Saves one durable fact, preference, or project decision so every connected AI tool can recall it in future sessions. Prevents losing context between tools and keeps knowledge shared.
Instructions
Save one durable fact, preference or decision so every AI tool can recall it later.
Use when the user states something that will still matter in future sessions: a
preference ("I prefer pytest"), a project decision ("we deploy on Fridays"), a fact
about the stack, or a key decision made while finishing a task. Save one fact per call.
Do NOT use for temporary task details, secrets (passwords, API keys, tokens), large
text such as code or logs, or things already obvious from the code.
Returns status "saved", "duplicate" (already known), or "needs_resolution": the fact
may conflict with existing ones; then call resolve_memory with the pending id.
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>",
"scope": "<scope>"
},
"name": "save_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | The project folder name (e.g. "ctxbook"), or "global" for facts about the user that apply everywhere. | |
| content | Yes | One short, self-contained fact, e.g. 'The orders API uses Postgres.' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| message | Yes | ||
| memory_id | Yes | The saved fact; the existing fact for a duplicate; the pending fact to pass to resolve_memory for needs_resolution. | |
| candidates | No | Existing facts the new one may conflict with. |