upload-caption
Upload a caption track from a local file (SRT/VTT/SBV/TTML) to a YouTube video, specifying language, track name, and optional draft status.
Instructions
Upload a new caption track from a local file (SRT/VTT/SBV/TTML). Costs 400 quota units.
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": {
"videoId": "<videoId>",
"filePath": "<filePath>",
"language": "<language>",
"name": "<name>"
},
"name": "upload-caption"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Track name shown to viewers | |
| isDraft | No | Whether the track is unpublished | |
| videoId | Yes | Video ID | |
| filePath | Yes | Absolute local path to the caption file | |
| language | Yes | BCP-47 language code, e.g. en |