Import memories
import_memoryImport memories from a JSON array or a .json file inside data/exports/. Validates type, dedupes against existing memories, and never overwrites active memory blindly. Dry-run by default; pass apply=true to insert.
Instructions
Import memories from a JSON array or a .json file inside data/exports/. Validates type, dedupes against existing memories, and never overwrites active memory blindly. Dry-run by default; pass apply=true to insert.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Path to a .json export file (must be inside data/exports/) | |
| json | No | Inline JSON: an array of memory objects, or { memories: [...] } | |
| apply | No | Actually insert memories (default false = dry run, just report) | |
| userId | No | Scope imported memories to a user (USER scope); overrides per-item userId | |
| trusted | No | Trusted import (default false). Auxiliary data (preferences/lessons/profile) is restored only when true; per-item trusted flags are ignored |