download_file
Fetch a single attachment from a Worksection task and return it inline as base64. Avoids writing to disk and rejects files exceeding a specified size limit.
Instructions
Fetch one attachment and return it inline as base64. Refuses files larger than max_bytes instead of writing anywhere on disk.
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": {
"project_id": "<project_id>",
"task_id": "<task_id>",
"file_id": "<file_id>"
},
"name": "download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | Attachment id, from get_task_files. | |
| task_id | Yes | Task id. | |
| max_bytes | No | Refuse to inline content larger than this many bytes. | |
| project_id | Yes | Project the task belongs to. |