Import Threat Model Archive
import_threat_model_archiveImport a JSON threat model archive into a workspace as a new, unverified model. Run it locally to upload the file, or get the in-app import link for hosted setups.
Instructions
Import a JSON audit archive (a file export_report (scope="model", format="archive")
produced) into a target workspace. Its contents never pass through this
call: they must arrive exactly, and copied as text they would fill your
context and could change.
Locally run package: name the archive with
file, a file in the exports folder (thesaved_topathexport_report(save=True)gave, or that path relative to the folder). This server reads it from disk and uploads it; a path outside the folder is refused.Hosted server, or no
file: nothing is imported. The answer'simport_in_app(where,url) is where the person imports it in the app, signed in to the target workspace: give them both.
Mutating when it imports: creates a NEW threat model in the target
workspace. Requires write access to that workspace. A fresh model_id is
assigned on every import, so the same archive can be imported any number
of times without collisions; a title already used in the target
workspace gets a numbered suffix (Checkout (2)). Non-destructive — never
overwrites or touches an existing model.
The archive carries the model's current state, and the import creates it as version 1 of a new model: its controls, live assertions, decisions in force and open findings. Earlier versions, activity and chat are not carried.
The restored model arrives UNVERIFIED. The tier verdicts on its assertions, the attested flag on a verification result, and the facts a verification run reported are the origin's record of what it claimed — kept with the model as that record, and not credited here: a verdict belongs to the run that produced it and the judge that decided it, and this workspace has neither. Verification is earned here by running it against code this workspace can reach, so plan for a restored model to read unverified until it has. The same holds for the judgements of its mitigation groups: the import queues none, and its objectives read awaiting judgement until someone asks for them.
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>",
"workspace_id": "<workspace_id>"
},
"name": "import_threat_model_archive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | The archive in the exports folder (locally run package only). | |
| workspace_id | Yes | Target workspace to import into. | |
| server_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||