Download invoice attachment
crunch_download_invoice_attachmentDownload a file attached to a sales invoice using invoice and attachment IDs retrieved from crunch_get_invoice.
Instructions
Download a file attached to a sales invoice. Attachment IDs and names come from crunch_get_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": {
"invoice_id": "<invoice_id>",
"attachment_id": "<attachment_id>"
},
"name": "crunch_download_invoice_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_to | No | Also save the file in the server's CRUNCH_FILES_DIR: a directory (the file keeps its name) or a file path, absolute or relative to it. Existing files are never overwritten. Only works when the server sets CRUNCH_FILES_DIR | |
| file_name | No | Attachment file name (looked up when omitted) | |
| invoice_id | Yes | Invoice ID (see crunch_list_invoices) | |
| attachment_id | Yes | Attachment ID within the invoice (see crunch_get_invoice) |