Export formatted report (HTML / PDF)
export_reportGenerate print-ready, self-contained HTML or PDF country reports or formatted markdown outputs with embedded fonts, charts, citations, and extraction manifest.
Instructions
Export a print-ready, self-contained document: the full country report (pass country) or any tool’s markdown output (pass markdown, e.g. from trend_analysis or durable_solutions). format "html" (default) = one file with embedded Arabic/Latin font, inline SVG charts, citations and the extraction manifest; "pdf" = the same rendered by a local headless Chrome/Chromium/Edge (falls back to HTML with an explanation if none is available). Arabic output (locale "ar") is right-to-left. Returns a resource link (export://…) unless inline is true.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "export_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Document title (markdown mode) | |
| format | No | Output format (default html) | |
| inline | No | Embed the file in the result instead of returning a resource link (default false) | |
| locale | No | Language of the human-readable text output: "en" (default) or "ar" (Modern Standard Arabic, right-to-left). Structured JSON fields, ISO3 codes and dataset ids stay in English either way. | |
| country | No | Country for a full country report (name or ISO3). Omit when passing markdown. | |
| year_to | No | Last year of the range (default: latest available) | |
| markdown | No | Markdown to format instead of a country report (e.g. a tool’s text output) | |
| year_from | No | First year of the range (default: 10 years back) | |
| include_manifest | No | Append the extraction manifest (default true) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | Yes | ||
| bytes | Yes | ||
| title | Yes | ||
| format | Yes | ||
| locale | Yes | ||
| sha256 | Yes | ||
| filename | Yes | ||
| manifest | No | ||
| mime_type | Yes | ||
| pdf_engine | No | ||
| fallback_reason | No | ||
| requested_format | Yes |