import_memories
Bulk-import memories from inline entries or snapshot files with dry-run validation, dedupe policies, and optional merge connections.
Instructions
Bulk-import memories from inline entries or from a snapshot file. Supports dry-run validation, dedupe policies, and explicit snapshot migration flags.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | No | Array of memory entries to import. Required if file_path is not provided. | |
| file_path | No | Absolute path to a server snapshot JSON file (typically a memories.json snapshot generated by this server). Required if entries is not provided. | |
| dry_run | No | Validate the import and return would_import / would_skip / would_fail counts without writing any data | |
| dedupe | No | Optional dedupe policy: none, content_hash, or content_plus_tags | |
| preserve_ids | No | Snapshot-import only. Preserve source memory IDs; conflicting IDs are rejected deterministically | |
| merge_connections | No | Snapshot-import only. Merge the imported connection graph after validating all referenced IDs | |
| agent_id | No | Optional default agent identifier applied to entries without agent_id |