Download a port document
port_download_documentRetrieve a port document's raw bytes by providing the request UUID and document ID. Get document IDs from the port list documents endpoint to download files like PDFs.
Instructions
Download one port document's raw bytes (Content-Type mirrors the stored document). Get document IDs from port_list_documents. Note: binary content (e.g. PDF) is returned inline and may not be readable as text. Errors (JSON): NOT_FOUND, TNIQ_VALIDATION, TNIQ_ERROR.
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": {
"id": "<id>",
"doc_id": "<doc_id>"
},
"name": "port_download_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Port request UUID (from port_list_requests or port_create_request) | |
| doc_id | Yes | Document ID (from port_list_documents) |