upload_attachment
Attach a file to a task in the connected LoopGantt ACCOUNT (requires signing in to LoopGantt, or an API key): a report, export, screenshot or spec the task is about. Send the file as base64 (at most 4 MB). The hosted remote server caps a whole request at 512 KB, so through it a file can be at most about 380 KB; for bigger files use the local server or the REST API upload (POST /api/v1/tasks/{taskId}/attachments with fileName and size). Executables, scripts and HTML are refused. Files count against the file storage of the workspace plan; list_attachments shows the per-file limit and how much is used.
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>",
"fileName": "<fileName>",
"contentBase64": "<contentBase64>"
},
"name": "upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | Task id from list_tasks | |
| fileName | Yes | File name with extension, e.g. "site-plan.pdf" | |
| contentType | No | MIME type, e.g. "application/pdf" (optional) | |
| contentBase64 | Yes | The file bytes, base64-encoded (a data: URL also works) |