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"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memories | Yes | The "memories" array produced by export_memories. |