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 | The filename with its actual media extension, for example interview.wav or clip.mp4. | |
| mimeType | Yes | The actual media MIME type, for example audio/wav or video/mp4. | |
| sizeBytes | Yes | The exact byte length of the source file. | |
| 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 |