Build an export
export_prepareGenerate a downloadable zip export from a scan in the chosen format. The process runs as a background job and returns the download path for fetching the prepared artifact.
Instructions
Build the export zip as a background job (POST /demo/export/prepare → 202 {job_id}; 409 export_job_active when one is running). With wait=true (default) polls the job and returns the prepared artifact (including download_path). Then artifact_fetch it.
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": {
"scan_id": "<scan_id>",
"format": "<format>"
},
"name": "export_prepare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | ||
| format | Yes | ||
| poll_s | No | ||
| source | No | ||
| scan_id | Yes | ||
| timeout_s | No |