merge_memories
Merge AI agent memories between sources in one atomic operation. Consolidate episodes and profiles with automatic deduplication and dry-run preview to eliminate intermediate export files.
Instructions
Merge memories, episodes, and profiles from one agent into another. Atomic one-shot equivalent of export→import without intermediate files. Strategy 'skip' deduplicates by msg_id (memories) and summary (episodes).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_agent_id | Yes | Agent ID to merge FROM | |
| target_agent_id | Yes | Agent ID to merge INTO | |
| strategy | No | Merge strategy: 'skip' (default) — skip duplicates, keep target's version | skip |
| mode | No | Merge mode: 'copy' (preserve source) or 'move' (delete source after merge) | copy |
| dry_run | No | Preview merge without writing to DB |