task_add_attachment
Attach a small file to a task by sending its bytes as base64. Use this only when you can't run commands (for example in a chat app); otherwise use task_create_attachment_upload, which keeps the file out of your context. Same rules as the app: JPG, PNG, WebP, PDF, TXT or CSV, up to 2 MB, 10 files per task.
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": {
"projectId": "<projectId>",
"taskId": "<taskId>",
"filename": "<filename>",
"content": "<content>",
"context": "<context>"
},
"name": "task_add_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | The task ID or number (FB-360 or 360) | |
| content | Yes | The file's bytes, base64-encoded (a data: URL prefix is fine) | |
| context | Yes | Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization." | |
| filename | Yes | File name with its extension, e.g. checkout-error.png | |
| projectId | Yes | The project ID |