memory_encode
Persist an AI agent's memory with optional emotional affect, tags, context, and salience, enabling structured recall and consolidation.
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>",
"source": "<source>"
},
"name": "memory_encode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional tags for categorization | |
| affect | No | Emotional affect - how this memory feels | |
| source | Yes | Source type of the memory | |
| content | Yes | The memory content to encode | |
| context | No | Situational context as key-value pairs (e.g., {task: "debugging", domain: "payments"}) | |
| private | No | If true, memory is only visible to the AI and excluded from public recall results | |
| salience | No | Importance weight 0-1 | |
| wait_for_consolidation | No | If true, wait for post-encode validation/interference/resonance work before returning. Defaults to false. |