Attach a file to a card
kanbini_add_attachmentAttach a file to a Kanbini card from a local path or inline text/base64 content, returning the stored attachment ID for use as a card cover.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| cardId | Yes | ||
| content | No | ||
| encoding | No | ||
| filename | No |