generate_report
Renders an approved report snapshot into JSON or CSV artifacts after evidence review, returning inline file bytes with lengths and SHA-256 hashes for provenance-aware reporting.
Instructions
Render the supplied approved report snapshot into requested JSON, Markdown, or CSV artifacts. Use after evidence review when a report is needed; export_candidates is for candidate rows and export_research_package is for a ZIP. Returns inline file bytes with lengths and SHA-256 hashes; it does not independently fetch evidence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | Caller-chosen identifier linking this call to one research run. | |
| outputFormats | Yes | File formats to render from the supplied report snapshot. | |
| idempotencyKey | Yes | Caller-supplied stable key for repeatable export identity. | |
| reportSnapshot | No | Caller-supplied approved report data to render; no evidence retrieval occurs. | |
| templateVersion | Yes | Version of the report layout used to render artifacts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether execution completed successfully. | |
| data | No | Tool-specific result fields on success. | |
| meta | Yes | Run identifiers, timings, and input/output hashes. | |
| error | No | Structured failure on unsuccessful execution. |