upload_file
Attach a file to a task by supplying base64 content or naming a file in the configured workspace directory. Avoids arbitrary filesystem paths.
Instructions
Attach a file to a task. Provide the content inline as base64, or name a file inside the configured workspace directory. Arbitrary filesystem paths are rejected.
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>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | Task to attach the file to. | |
| filename | No | Name to store the file under. Required with content_base64. | |
| project_id | Yes | Project the task belongs to. | |
| content_base64 | No | File content, base64 encoded. | |
| workspace_filename | No | Name of a file inside FILE_WORKSPACE_DIR, relative to it. Absolute paths, '..' segments and symlinks are rejected. |