Manage Task Attachment
attachmentAdd a file to a task or remove one. action: "add" fetches the given HTTPS url: the server downloads it, verifies its size and type, and stores it, so the model never sends file bytes. Pass a stable idempotency_key and reuse it for retries so a lost response cannot upload the file twice. action: "remove" deletes the named attachment. Read a task's files with task_show and include: ["attachments"]. Limited to 10 attachments per task and 10 MB per file. Allowed types: images (jpeg, png, gif, webp, heic), PDF, CSV, Markdown, and plain text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | HTTPS URL of the file to attach. Required to add | |
| task | Yes | Workspace-scoped task number, encoded as a string | |
| action | Yes | Whether to attach a file or delete one | |
| 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 | No | Display filename on an add; defaults to the URL's last path segment | |
| workspace | No | Workspace id, slug, or name | |
| attachment | No | Attachment UUID or prefix (>= 4 chars). Required to remove | |
| idempotency_key | No | Stable key that makes retries safe: repeated calls with the same key create only one record and return the same id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| ok | Yes | ||
| action | Yes | ||
| taskId | Yes | ||
| attachment | Yes | The stored file on an add; null on a remove |