Prepare a media upload
dub_create_uploadCreates an upload slot. Send the actual file bytes to the returned HTTP upload URL, then complete it. This tool does not import a ChatGPT attachment or an arbitrary URL.
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>",
"mimeType": "<mimeType>",
"sizeBytes": "<sizeBytes>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "dub_create_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | Yes | ||
| mimeType | Yes | ||
| sizeBytes | Yes | ||
| idempotencyKey | Yes | A stable unique key for this operation. Reuse it with the exact same input after a timeout; never generate a new key to retry. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The safe public API response, or resumable-upload status. |