Upload captions
upload_captionsAdd a captions track to a YouTube video from a local subtitle file or inline SRT/VTT content, with options to set language, name, and replace existing tracks.
Instructions
Add a captions track (.srt, .vtt or other YouTube-supported format) to a video, from a file on this computer or inline content.
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": {
"video_id": "<video_id>"
},
"name": "upload_captions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Track name shown to viewers; usually empty. | |
| channel | No | Which connected channel: channel ID (UC...), @handle or name. Omit to use the default channel. | |
| content | No | Caption file contents, e.g. SRT text. | |
| is_draft | No | ||
| language | No | BCP-47 language, e.g. "en", "hi", "es". | en |
| video_id | Yes | ||
| file_path | No | ||
| replace_existing | No | Overwrite an existing uploaded track with the same language and name (default: add a new track). |