invoices_attachments
Download an invoice file attachment using invoice and attachment UUIDs, returning base64-encoded binary data with its MIME type.
Instructions
Download a file attachment from an invoice. Returns base64-encoded binary data with the MIME type. Get attachment UUIDs from invoices_get (the "attachments" array). Supports PDF, images, Word, Excel, ZIP, and other file types.
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>",
"attachmentId": "<attachmentId>"
},
"name": "invoices_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Invoice UUID | |
| companyId | No | Company UUID override (uses active company if not set) | |
| attachmentId | Yes | Attachment UUID (from invoices_get attachments array) |