Add expense receipt
add_expense_receiptAttaches a receipt to an expense: a photo (JPG, PNG, WebP or GIF, optimized like task photos) or a PDF, sent base64-encoded with its filename. The person who logged the expense and the project owner can add one, also to an expense already on an invoice. At most 10 per expense; each file up to the project owner's plan cap (5 MB on Free, 25 MB on Pro).
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": {
"expenseId": "<expenseId>",
"filename": "<filename>",
"contentBase64": "<contentBase64>"
},
"name": "add_expense_receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | The file's name with its extension. | |
| expenseId | Yes | The expense. | |
| contentBase64 | Yes | The file's bytes, base64-encoded. |