Batch Encode Memories
batch_encodeStore multiple memories atomically in one request (consumes max(1, memories.length) Write API calls; non-idempotent) and return { ids, encoded }. Validates every item namespace before writing so any reserved "org:" prefix aborts the entire batch cleanly; items inherit top-level namespace and default to type="episodic" and salience=0.5. Use when checkpointing or importing 2+ memories together; use encode_memory instead for a single memory write.
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": {
"memories": "<memories>"
},
"name": "batch_encode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memories | Yes | Non-empty array of memory objects ({ content, type?, salience?, namespace?, context? }). | |
| namespace | No | Fallback logical workspace namespace applied to batch items that omit namespace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Created memory UUIDs in input order. | |
| encoded | Yes | Total number of memories stored. |