Dub video
dub_videoCreate a copy of an existing video with its speech translated into another language, keeping the original voices and timing. Returns toolExecutionId; get_tool_execution provides status and the output video file. The source file is unchanged. Use translate_video instead when the user wants an editable project or several languages.
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": {
"videoFileId": "<videoFileId>",
"targetLanguage": "<targetLanguage>"
},
"name": "dub_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| videoFileId | Yes | Video to transform. Use fileId from upload_file, list_files, or a succeeded video-generation result. | |
| sourceLanguage | No | Language spoken in the source video, as a BCP-47 code. Omit to detect it automatically. | |
| targetLanguage | Yes | Language to translate the speech into, as a BCP-47 code such as es, fr, or de. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error details when status is failed; otherwise null. | |
| status | No | Job status: pending, running, succeeded, failed, or cancelled. | |
| results | No | Generated results with download URLs when succeeded. | |
| toolType | No | Tool name (e.g. GENERATE_IMAGE). | |
| attemptIndex | No | Current or latest attempt index. | |
| toolExecutionId | Yes | Tool execution id (vg_tool_...). | |
| progressPercentage | No | Completion progress 0-100 (present after polling). |