Add expense receipt
add_expense_receiptAttach a receipt image to an expense. Send the image as base64 with a filename or content_type, or as a data URL. PNG, JPEG, WebP, GIF, and HEIC images are accepted. PDF receipts are not.
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": {
"expense_id": "<expense_id>"
},
"name": "add_expense_receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Alias for image_base64. | |
| filename | No | The receipt file name. Used to infer content_type when it is omitted. | |
| expense_id | Yes | ||
| business_id | No | The id of the business to act on, from list_businesses. Optional when this connection covers a single business. | |
| content_type | No | The receipt image MIME type, such as image/jpeg. | |
| image_base64 | No | Base64-encoded receipt image (PNG, JPEG, WebP, GIF, or HEIC). | |
| receipt_data_url | No | A data URL for the receipt image, if the image is not sent as base64. |