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.
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. |