download_sanitized_file
Download Content Disarm and Reconstruction (CDR) sanitized files from Threat.Zone malware analysis submissions using the submission UUID to retrieve safe, threat-free versions of analyzed content.
Instructions
Download the CDR-sanitized file for a given submission UUID.
Args: uuid: Submission UUID
Returns: Base64-encoded file content
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes |
Implementation Reference
- src/threatzone_mcp/server.py:608-620 (handler)The handler function implementing the download_sanitized_file tool. It is registered via the @app.tool decorator. Downloads the sanitized (CDR) file from the ThreatZone API for the given submission UUID and returns its base64-encoded content.@app.tool async def download_sanitized_file(uuid: str) -> str: """ Download the CDR-sanitized file for a given submission UUID. Args: uuid: Submission UUID Returns: Base64-encoded file content """ import base64 content = await get_client().download(f"/public-api/download/cdr/{uuid}")