Attach a file to a task
taskthread_attach_fileAttach a file to a task: a text or Markdown file you write (pass text), or an image, PDF, Word or PowerPoint file (pass contentBase64 and mimeType), up to 5 MB. It shows in the task's attachments in the app, and the task history says you added it.
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": {
"taskId": "<taskId>",
"name": "<name>"
},
"name": "taskthread_attach_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | File name with extension, e.g. "launch-plan.md". | |
| text | No | ||
| taskId | Yes | ||
| mimeType | No | ||
| contentBase64 | No |