Upload a receipt
upload_documentAdd a receipt or invoice you found: text for a text receipt (a mail body), or base64 for a small picture, never both. For a PDF or any file you have as a file, use create_upload_link instead: writing a file out as base64 is slow and costly. Give the line's ID (line, like #1042), or month and number, to put it straight on a line; give only month to sort it among that month's lines; give none for the Inbox. When exactly one line matches by amount and date it is attached at once and the line becomes found. Returns the document with what the reader found and suggested lines.
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": {
"name": "<name>"
},
"name": "upload_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | The line's ID, like #1042 (list_lines and read_line show it): names the line alone, instead of month and number. | |
| name | Yes | The file name with its extension, like adobe-invoice.pdf or receipt.jpg. | |
| text | No | ||
| month | No | The month as YYYY-MM, like 2026-09; with number, or give line instead. | |
| base64 | No | ||
| number | No | The line's number in the month, like 12; with month, or give line instead. | |
| contentType | No | The MIME type when the name does not say. |