create_upload
Get a one-hour signed upload URL for an image or a zip that is too large to send inline (over 3 MB; up to 100 MB here) or that already sits on disk. PUT the raw bytes to upload_url with a Content-Length header, then pass file_id to process_images. Free.
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": {
"bytes": "<bytes>"
},
"name": "create_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | Exact size of the file you will upload, in bytes (at most 100 MB) | |
| filename | No | Original file name, used to name the output |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | ||
| file_id | Yes | ||
| max_bytes | Yes | ||
| expires_at | Yes | ||
| upload_url | Yes |