Download Attachment
download_attachmentFetch the binary content of a Trello card attachment, including authenticated access for private boards. Returns image blocks for images or base64 with metadata.
Instructions
Download the binary content of a card attachment. Trello-hosted attachments on private boards require authentication that a plain URL fetch lacks (401) — this tool sends the correct credentials. Returns an image block for images, otherwise base64 + metadata.
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": {
"cardId": "<cardId>",
"attachmentId": "<attachmentId>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cardId | Yes | ID of the card the attachment belongs to | |
| maxBytes | No | Max inline size; larger files return metadata only (default 5MB) | |
| attachmentId | Yes | ID of the attachment to download |