Request a sample upload URL
request_uploadUse when you upload a sample file yourself. A one-time signed URL for ONE sample file of a task the person joined. PUT the raw bytes to upload_url with the returned headers, then call confirm_upload with the path. Kind must match the task; up to 100 MB; up to 10 files per task.
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": {
"submission_id": "<submission_id>",
"filename": "<filename>",
"mime_type": "<mime_type>",
"size_bytes": "<size_bytes>"
},
"name": "request_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| mime_type | Yes | ||
| size_bytes | Yes | ||
| submission_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Pass to confirm_upload | |
| headers | No | Headers for the PUT | |
| upload_url | No | Signed URL to PUT the bytes to | |
| expires_in_seconds | No | URL lifetime |