Upload a model input
generate_uploadOpens an upload slot for a model input that takes a file's URL (a reference image, an audio clip to transform). PUT the file's bytes to uploadUrl (on this server, valid 15 minutes) with the headers given, e.g. curl -T file.png -H 'Content-Type: image/png' "$uploadUrl", then pass fileUrl to the model.
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": {
"contentType": "<contentType>",
"fileName": "<fileName>"
},
"name": "generate_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | Yes | The file's name with its extension, e.g. `hero.png`, up to 255 characters | |
| contentType | Yes | The file's MIME type, e.g. `image/png`; PUT the bytes with this Content-Type |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileUrl | Yes | ||
| headers | Yes | ||
| uploadUrl | Yes |