upload_transaction_attachment
Uploads a receipt file to a Starling transaction from base64 content (max 1.5 MB) without changing the amount; requires explicit confirmation before applying.
Instructions
WRITE. Uploads one receipt file (plain base64, at most 1.5 MB) onto a transaction. Does not change the amount. No file path is read from disk. Requires confirmed: true.
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": {
"feedItemUid": "<feedItemUid>",
"contentType": "<contentType>",
"base64": "<base64>",
"confirmed": "<confirmed>"
},
"name": "upload_transaction_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base64 | Yes | Plain base64. Do not include a data: URL prefix. | |
| confirmed | Yes | Must be true. Set this only after the user has explicitly agreed to this exact change. | |
| accountUid | No | Account UID from list_accounts. Omit when the token can see only one account. | |
| categoryUid | No | Category UID. Omit to use the account's main feed (defaultCategoryUid). A savings goal UID is also a category UID. | |
| contentType | Yes | image/jpeg, image/png, image/webp, application/pdf, or text/plain. | |
| feedItemUid | Yes | Transaction feed item UID. |