Attach File to Task
task_attachAttach a file to a task by fetching it from an HTTPS URL: the server downloads it, verifies its size and type, and stores it. The model never sends file bytes directly. Pass a stable idempotency_key and reuse it for retries so a lost response cannot upload the file twice. 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 | Yes | HTTPS URL of the file to attach | |
| task | Yes | Workspace-scoped task number, encoded as a string | |
| 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; defaults to the URL's last path segment | |
| workspace | No | Workspace id, slug, or name | |
| 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 |
|---|---|---|---|
| ok | Yes | ||
| taskId | Yes | ||
| attachment | Yes |