Import a ChatGPT audio or video file
dub_import_fileCopies a selected ChatGPT audio or video attachment up to 128 MiB into the connected DubSync account. Ask permission to upload this file first and use the exact file handle supplied by ChatGPT. If either handle field is missing or the link is unsupported or expired, ask the user to reattach the file or upload it in DubSync. Import prepares the source without starting translation. If preparing is true, use the returned assetId and completionKey with dub_complete_upload. Supports known-length downloads from OpenAI-owned oaiusercontent.com hosts.
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": {
"file": "<file>",
"uploadConfirmed": "<uploadConfirmed>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "dub_import_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | 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. | |
| uploadConfirmed | Yes | True only after the user authorizes copying this specific file into their DubSync account. This is not translation consent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |