session_export_memory
Export project memory to a local file in JSON, Markdown, or vault format for data portability and GDPR compliance.
Instructions
Export all of a project's memory to a local file. Fulfills GDPR Article 20 (Right to Data Portability) and the 'local-first' portability promise.
What is exported:
All session ledger entries (summaries, decisions, TODOs, file changes)
Current handoff state (live project context)
System settings (API keys are "REDACTED" for security)
Visual memory index (descriptions, captions, timestamps; not the raw files)
Formats:
json— machine-readable, suitable for import into another Prism instancemarkdown— human-readable, ideal for static archivingvault— Prism-Port: exports a compressed.zipof interrelated Markdown files with proper Obsidian/Logseq YAML frontmatter and[[Wikilinks]]
⚠️ Output directory must exist and be writable. Filenames are auto-generated: prism-export-<project>-<date>.(json|md|zip)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Export format: 'json' (single file), 'markdown' (single human doc), 'vault' / 'obsidian' / 'logseq' (zip with wikilinked .md files + YAML frontmatter — drop into your PKM vault). Default: json. | json |
| project | No | Project to export. If omitted, exports ALL projects into separate files. | |
| output_dir | Yes | Absolute path to the directory where the export file(s) will be written. Must exist and be writable. Example: '/Users/admin/Desktop'. |