spv_documents_download
Downloads the archived PDF of an SPV document to a local file path. Use it to retrieve previously fetched documents, handling SPV_FILE_PENDING or SPV_FILE_PURGED errors when the file isn't ready or has expired.
Instructions
Download the archived PDF of an SPV document to a local file. Fails with SPV_FILE_PENDING when the agent has not fetched it yet, or SPV_FILE_PURGED when retention removed 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": {
"uuid": "<uuid>",
"outputPath": "<outputPath>"
},
"name": "spv_documents_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | SPV document UUID | |
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) | |
| outputPath | Yes | Local file path to write the PDF to |