Export Report
export_reportExports a threat model or tag as a downloadable CSV, PDF, HTML, or audit archive, returning a download link or job status for large reports.
Instructions
Export a threat model or a tag as a downloadable document. Read-only; no side effects on the source.
scope selects what is exported and how scope_id is read; format selects the representation:
scope="model"(scope_id= model id) supportsformat∈ {csv,pdf,html,archive}:csv— the model's current state rendered as CSV; returned inline as UTF-8 text incontent.pdf/html— the rendered report, produced by a server-side job.archive— the self-contained, independently-verifiable JSON audit bundle of the model's current state (controls, live assertions and their runs, findings, decisions in force, attestations, sufficiency signatures; not earlier versions, activity or chat). Model scope only.
scope="tag"(scope_id= tag id) supports onlyformat="html": the signed auditor report of every member model, inline incontent.
A model's pdf, html or archive is never returned inline: it can be megabytes. The tool starts the export and waits briefly. Done, it answers filename, content_type, size, sha256, expires_at (an hour after it started) and download_url, a web app page where a signed-in person with access downloads it: give the person that link. Still running, job_id and status: poll get_export_status(job_id). To move a model to another workspace, the person downloads the archive and imports it in the app, signed in there.
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": {
"server_version": "<server_version>",
"scope": "<scope>",
"scope_id": "<scope_id>"
},
"name": "export_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | once done, save a model's pdf, html or archive in the exports folder (``~/.mipiti/model_exports``, or ``MIPITI_EXPORT_DIR``), filed by workspace and model and named by title, time and digest; the answer's ``saved_to`` gives the path. The locally run package only: the hosted server refuses it. | |
| scope | Yes | export boundary — "model" or "tag". | |
| format | No | "csv" (default), "pdf", "html", or "archive". Tag scope requires "html"; "archive" is model-only. | csv |
| scope_id | Yes | id of the model or tag selected by ``scope``. | |
| server_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||