Get invoice PDF
ws_invoice_pdfRetrieve an invoice as a PDF document. Choose base64 to get the encoded file for decoding and saving, or binary to get file size and type without raw bytes.
Instructions
Fetch an invoice as a PDF. base64 returns the document encoded for a caller that will decode and save it. binary reports the size and type only — raw PDF bytes are never inlined into a tool result, because they would flood the conversation without being usable.
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": {
"invoiceId": "<invoiceId>"
},
"name": "ws_invoice_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | base64 returns the encoded document; binary returns metadata and a byte count only. | binary |
| userId | No | Account id, or the literal "self" for the authenticated account. Defaults to "self". | self |
| invoiceId | Yes | Invoice id, as returned by ws_invoice_list. |