attach_file_to_task
Upload a file to a Kanboard task by providing a local file path or base64 content. File size limited to 5 MB.
Instructions
Upload a file to a Kanboard task as an attachment. Provide either file_path (local file) or content_base64 (inline base64 content) — not both. project_id is resolved automatically from the task (no need to provide it). Maximum file size: 5 MB (5,242,880 bytes) — larger files return VALIDATION_ERROR before any HTTP request is made. Returns { file_id } on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ID of the task to attach the file to (required). | |
| filename | Yes | Filename to store in Kanboard (required). | |
| file_path | No | Absolute or relative path to the file to upload. Relative paths are resolved against process.cwd(). Maximum decoded size: 5 MB (5,242,880 bytes). Exactly one of file_path or content_base64 must be provided (not both, not neither). | |
| content_base64 | No | Base64-encoded file content to upload directly (no local file needed). Decoded size must be ≤ 5 MB (5,242,880 bytes). Exactly one of file_path or content_base64 must be provided (not both, not neither). |