export_decisions
Export decisions to JSONL or Markdown for audit, sharing, and LLM digestion. Supports filtering by project, service, type, and branch.
Instructions
Export decisions to JSONL or Markdown. Read-only; no schema mutations. Use for audit, sharing with external tooling, or pre-LLM digestion. JSONL emits one decision per line with tags parsed from the on-disk JSON column into a real array. Markdown groups by type (and by service when multi-service). Hard-capped at 5000 rows per call as a cost guard. Returns JSON: { format, content, count, scope }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_root | Yes | Project root to filter by (default: server projectRoot). | |
| service_name | No | Filter by subproject name (e.g., "auth-api"). | |
| type | No | Filter by decision type. | |
| git_branch | No | Branch filter. "all" → every branch (default); any other value → that branch + branch-agnostic rows. | |
| include_invalidated | No | Include invalidated decisions (default: false). | |
| format | No | Output format (default: jsonl). | jsonl |
| limit | No | Max rows to export (default: 500, hard max: 5000). |