get_document_pdf
Return the PDF of a document (invoice, proforma invoice, receipt, order, or notice) as a base64-encoded string. The caller can decode the base64 and save it as a .pdf file. Defaults to document_type "invoice".
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>"
},
"name": "get_document_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document ID | |
| document_type | No | Document type: invoice (default), proforma_invoice, receipt, order, notice |