Import memories
import_memoriesRestore agent memories from a prior export, validating all items first and writing them in one transaction while skipping duplicates and expired entries.
Instructions
Import memories from a previous export_memories call.
Each item needs at least a non-empty "content"; namespace, tags, source, created_at, updated_at and expires_at are preserved when present (timestamps with offsets are converted to UTC). Everything is validated first and written in one transaction, so a bad item changes nothing. Exact duplicates (same content + namespace) and items that have already expired are skipped.
Returns {"imported", "skipped", "expired", "total_received", "message"}.
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": "import_memories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memories | Yes | The "memories" array produced by export_memories. |