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