card_attachment_upload
Upload a server-local file to a Trello card as an attachment, restricted to the configured upload root. Use it to attach files by path; use URL attachments for public links.
Instructions
Read a server-local file inside TRELLO_ATTACHMENT_UPLOAD_ROOT and transmit its contents to Trello as a new card attachment. Disabled unless that root is configured; repeated uploads can create duplicates. Use card_attachment_add_url for public links.
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>",
"filePath": "<filePath>"
},
"name": "card_attachment_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional Trello display name for the uploaded attachment. | |
| cardId | Yes | Trello card id, short link, or Trello card URL. | |
| filePath | Yes | Server-side file path to upload. Relative paths resolve inside TRELLO_ATTACHMENT_UPLOAD_ROOT; absolute paths must also be inside that root. | |
| mimeType | No | Optional MIME type to send for the uploaded file. | |
| setCover | No | Whether Trello should make this uploaded attachment the cover. |