Create a presigned upload
create_uploadUpload a local PNG or JPEG (up to 10 MB) to a remote server: pass media_type, bytes and sha256, then within 15 minutes curl -X PUT -H 'content-type: <media_type>' --data-binary @<file> '<put_url>' and call get_upload (upload_not_finished…
Instructions
Upload a local PNG or JPEG (up to 10 MB) to a remote server: pass media_type, bytes and sha256, then within 15 minutes curl -X PUT -H 'content-type: <media_type>' --data-binary @<file> '<put_url>' and call get_upload (upload_not_finished before the PUT). Use the upload_id within 24 hours. Free; 200 uploads per day.
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": {
"media_type": "<media_type>",
"bytes": "<bytes>",
"sha256": "<sha256>"
},
"name": "create_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | ||
| sha256 | Yes | ||
| filename | No | ||
| media_type | Yes |