Start image upload
start_image_uploadFor assistants that can run shell commands: upload a local image directly.
When upload_method is PUT, send the raw file with upload_headers, e.g.
curl -f -X PUT -H "Content-Type: image/jpeg" --data-binary @cake.jpg "<upload_url>";
when it is POST, send multipart/form-data with every field in upload_fields
plus file, e.g. curl -f -F key=... -F file=@cake.jpg "<upload_url>". Do it within
expires_in_seconds, then call confirm_image_upload.
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": {
"filename": "<filename>",
"content_type": "<content_type>",
"size_bytes": "<size_bytes>"
},
"name": "start_image_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | File name, e.g. cake.jpg | |
| size_bytes | Yes | Exact file size in bytes | |
| content_type | Yes | image/jpeg, image/png or image/webp |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||