Update captions
update_captionsReplace a caption track’s SRT/VTT file or set it as draft/published. Use it to update caption content or approval state when YouTube cannot rename the track or change its language.
Instructions
Replace a caption track's file and/or change its draft status. YouTube's API cannot rename a track or change its language. Two-step approval.
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>",
"caption_id": "<caption_id>"
},
"name": "update_captions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| is_draft | No | Set draft (true) or published (false). | |
| video_id | Yes | YouTube video ID (11 characters) or any youtube.com / youtu.be URL. | |
| file_path | No | New .srt/.vtt file to replace the track's captions. | |
| caption_id | Yes | Caption track ID from list_captions. | |
| verify_content | No | After replacing the file, download the track and compare its text (extra 200 quota units). | |
| confirmation_token | No | Token from the preview. Only pass it after the user has explicitly approved the preview. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||