export_report
Export a threat model or tag cohort as a downloadable document in CSV, PDF, HTML, or archive format. Read-only operation with no side effects on the source.
Instructions
Export a threat model or a tag cohort 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— rendered document returned base64-encoded incontent_b64(withcontent_type). Runs as a server-side job; progress is reported automatically while it completes, which may take time for large models.archive— the self-contained, independently-verifiable JSON audit bundle: every version, controls, assertions (with Tier 1 / Tier 2 verdicts and attested flags), findings, risk acceptances, assumption overrides, attestations, and instance sufficiency signatures. Returned as{..., "envelope": <dict>}; feed the envelope toimport_threat_model_archiveto restore it into any workspace. Model scope only.
scope="tag"(scope_id= tag id) supports onlyformat="html": the signed auditor report, aggregating every member model's report plus the cross-model dependency graph and attestation status into one HTML document, returned inline incontent.csv,pdf, andarchiveare rejected for tag scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 | |||