Get YouTube Transcript
get_youtube_transcriptFetch publicly available YouTube caption tracks by video URL or ID in a specified language, returning timestamped transcript lines without transcribing audio.
Instructions
Fetches and returns publicly available YouTube caption tracks; it does not transcribe audio. Accepts allowed YouTube URLs or raw video IDs, exact ISO 639-1/BCP-47 language codes such as pt-BR, es-419, and zh-Hans, and formats items into timestamped lines. If the requested track is unavailable, returns an error rather than another language.
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": {
"videoIdOrUrl": "<videoIdOrUrl>"
},
"name": "get_youtube_transcript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Optional ISO 639-1/BCP-47 language code, including regional or script subtags such as "pt-BR" or "zh-Hans" | |
| videoIdOrUrl | Yes | The YouTube video URL (e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ or https://youtu.be/dQw4w9WgXcQ) or raw 11-character video ID |