Upload file
upload_fileUpload a file, such as a supplier invoice PDF, sent as base64, and attach it to a record such as a bill in the same call. The file is stored as it is: stub does not read it into a new bill. Returns the file id; to attach it to another record later, use attach_file.
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>",
"type": "<type>",
"content": "<content>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | File name with its extension, for example invoice-1042.pdf | |
| type | Yes | The file's media type, for example application/pdf | |
| entity | No | The kind of record entityid is: bill, expense, income, invoice. A bill or invoice id names its own kind. | |
| content | Yes | The file itself, base64 encoded. At most 5 MB once decoded. | |
| entityid | No | Attach the stored file to this record, for example a bill (cont-…). Omit to only store the file. | |
| folderid | No | Folder to file it in |