Export memories as JSON
memory_exportCreate a portable JSON backup of project memories, decisions, and pitfalls to restore after destructive maintenance or migrate to another memento instance.
Instructions
Export memories, decisions, and pitfalls as a portable JSON document. Read-only. Use before destructive maintenance (bulk delete, schema migration) so you have a clean restore point, or to transfer state to another memento-mcp instance via memory_import. Includes scope, tags, importance, and supersession links so round-trip preserves structure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | No | Absolute project path to export. Empty string (default) exports memories across all projects. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | JSON document (as a string) containing `memories`, `decisions`, and `pitfalls` arrays plus a `meta` object with export timestamp and scope. |