youtube_download_caption
Download an owned YouTube caption track as SRT, TTML, VTT, or SBV to the downloads folder, with ownership verification and no overwrites.
Instructions
Download an owned caption track into /downloads/ as a new file you name with fileName (a plain name, no paths). Formats: srt, ttml, vtt, sbv. With format, the extension must match (.srt, .ttml, .vtt, .sbv). Without format you get the track original; use any of those four extensions. Never overwrites; bytes are not returned, the absolute path written is. Read-only on YouTube: no approval needed; ownership of the video and caption is verified first.
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>",
"captionId": "<captionId>",
"fileName": "<fileName>"
},
"name": "youtube_download_caption"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Caption format to convert to: srt, ttml, vtt, sbv. The fileName extension must match it. Omit for the track original. | |
| videoId | Yes | YouTube video ID (11 characters), e.g. dQw4w9WgXcQ. | |
| fileName | Yes | Plain new file name (no path) to write under <state dir>/downloads/; existing files are never overwritten. | |
| captionId | Yes | Caption track ID, from youtube_list_caption_tracks. |