Export to Markdown Files
export_markdownExports journal entries as individual Markdown files with YAML frontmatter, enabling external editing and re-import into the memory journal.
Instructions
Export journal entries as individual frontmattered Markdown files (.md). Each file contains YAML frontmatter (mj_id, entry_type, tags, relationships) and the entry content. Files can be edited externally and re-imported via import_markdown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Filter by tags | |
| limit | No | Max entries to export (default: 100, max: 500) | |
| end_date | No | End date filter (YYYY-MM-DD) | |
| output_dir | No | Target directory for .md files. Anti-Hallucination Hint: Do NOT use path or filepath, use output_dir. | |
| start_date | No | Start date filter (YYYY-MM-DD) | |
| entry_types | No | Filter by entry types | |
| workspace_id | No | Optional workspace isolation identifier (e.g. "alpha"). Do not use numeric project IDs or "workspace" as the key. | |
| project_number | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Error code (e.g. VALIDATION_ERROR, INTERNAL_ERROR) | |
| error | No | Human-readable error message | |
| files | No | ||
| details | No | Additional error context | |
| skipped | No | ||
| success | No | ||
| category | No | Error category (validation, query, connection, internal) | |
| output_dir | No | ||
| suggestion | No | Suggested fix for the error | |
| recoverable | No | Whether the error is recoverable | |
| exported_count | No | ||
| aggregated_errors | No | Details of individual errors in a multi-step operation |