Import memories from JSON
memory_importImport memories, decisions, and pitfalls from a JSON file produced by memory_export. Resolve conflicts with skip (preserve) or overwrite (replace) strategy. Embeddings are processed asynchronously.
Instructions
Import memories, decisions, and pitfalls from a JSON file produced by memory_export (server-local path, not a URL). Conflict handling via strategy: skip (default, safe to re-run) keeps existing rows on id collision; overwrite replaces them — use for authoritative restores. Side effects: inserts/updates rows in memories, decisions, pitfalls. Embeddings are queued asynchronously.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path on the server's filesystem to a JSON file produced by `memory_export` (e.g. `/tmp/memento-backup.json`). | |
| strategy | No | `skip` (default) preserves existing rows on id collision; `overwrite` replaces them. | skip |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Summary line with counts of rows inserted / updated / skipped per table (memories, decisions, pitfalls). |