Download statement invoice PDF
download_statement_invoiceDownload a statement invoice PDF to a specified absolute file path. The binary PDF is written without overwriting existing files, returning the byte count.
Instructions
Download the invoice PDF for a statement. save_to_path is REQUIRED (the PDF is binary) and must be an absolute path whose parent directory exists; the PDF is written there — an existing file is never overwritten (returns FILE_EXISTS) — and the tool returns the byte count.
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": {
"invoice_number": "<invoice_number>",
"save_to_path": "<save_to_path>"
},
"name": "download_statement_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_to_path | Yes | Absolute path (existing parent dir) to write the PDF to. Required. | |
| invoice_number | Yes | The statement invoice number. |