youtube_captions
Fetch auto-generated or human captions from a YouTube video by its 11-character ID and language code. Returns timed caption cues with text, start time, and duration.
Instructions
Retrieve auto-generated or human captions. Returns the caption cues for a YouTube video by its 11-character video id, in the language given by lang (ISO 639-1, default en). Each cue has its text, start time and duration. Works for both auto-generated and human-written captions.
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": {
"id": "<id>"
},
"name": "youtube_captions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | YouTube video ID (11-character code) | |
| lang | No | Caption language code (ISO 639-1), defaults to **en** |