memory_write
Creates or updates a versioned, evidence-backed memory record so assistants keep decisions, preferences, and task state consistent across sessions.
Instructions
Create/update an evidence-backed record (up to 8 KiB JSON).
For a lasting user correction, provide the active record_id and its last observed expected_version, the revised content, and user_correction evidence. Omit key, kind, scope, scope_id, priority, and expires_at to retain those fields. If the intended record or duration is ambiguous, clarify before writing.
For key-based writes, provide key and kind. Use expected_version=0 only for a new key. Scope defaults to project and priority to 50. Task-scoped records require scope_id. Times require a timezone. For a new standing preference about how to answer, use memory_save_communication_preference.
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>",
"evidence_ids": "<evidence_ids>",
"idempotency_key": "<idempotency_key>"
},
"name": "memory_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| kind | No | ||
| scope | No | ||
| content | Yes | ||
| priority | No | ||
| scope_id | No | ||
| record_id | No | ||
| expires_at | No | ||
| evidence_ids | Yes | ||
| idempotency_key | Yes | ||
| expected_version | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||