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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"runId": "<runId>",
"templateVersion": "<templateVersion>",
"outputFormats": "<outputFormats>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "generate_report"
}
}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. |