upload_attachment
Upload a file and attach it to a Firefly III transaction or other object. Provide base64 content, filename, and target ID to create and store the attachment.
Instructions
Upload a file and attach it to a Firefly III object (e.g. a transaction). Requires two steps internally: creates the attachment record, then uploads the file content.
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": {
"filename": "<filename>",
"attachable_type": "<attachable_type>",
"attachable_id": "<attachable_id>",
"content": "<content>"
},
"name": "upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Base64-encoded file content | |
| filename | Yes | ||
| attachable_id | Yes | ID of the object to attach to | |
| attachable_type | Yes | e.g. 'TransactionJournal' |