Get YouTube transcript
get_youtube_transcriptFetch the full text transcript of a YouTube video. Accepts a YouTube URL (watch, youtu.be, shorts, embed) or a bare 11-character video ID, and returns the transcript as plain text with title and metadata. Optionally pass a BCP-47 language code to select a specific caption track. Very long transcripts (multi-hour videos) come back in parts of up to 120,000 characters: when there is more, the result ends with a note giving the offset to pass on the next call.
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": "<video>"
},
"name": "get_youtube_transcript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Optional BCP-47 language code, e.g. "en", "zh-CN", "es". Omit for the default track. | |
| video | Yes | YouTube video URL or 11-character video ID | |
| offset | No | Optional. Character position to continue a long transcript from. Use the value given in the note at the end of the previous part. Omit to start from the beginning. |