Attach a file to a card
kanbini_add_attachmentAttach a file to a Kanbini card using a local path or inline text/base64 content; returns stored attachment details including ID and MIME type.
Instructions
Attach a file to a card, from ONE of two sources. (1) path: an absolute path to a local file, which the app copies in (up to 100 MB) - use this for files that already exist on disk. (2) filename + content: inline data you produce yourself, as encoding: "utf8" text (the default - notes, CSV, code) or encoding: "base64" for small binaries (up to 10 MB decoded). The filename's extension sets the file type; unsafe characters are replaced. Returns the stored attachment ({ id, filename, mime, size, ... , boardId }). To show an image as the card's cover, pass the returned id as coverAttachmentId to kanbini_update_card. A card can be given by its id, or by its number (#142, as shown on the card) with boardId (the id or name of the board it is on).
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>"
},
"name": "kanbini_add_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| cardId | Yes | ||
| boardId | No | The board id or name, when the card is given by number (#142) | |
| content | No | ||
| encoding | No | ||
| filename | No |