Get YouTube transcript
get_transcriptFetch a YouTube video’s transcript and metadata in plain text, timestamped segments, or SRT, with language selection and optional translation for analysis, summaries, or caption workflows.
Instructions
Fetch the transcript (captions) of a YouTube video plus metadata: title, channel, duration, views, publish date, available caption languages and whether the returned transcript is auto-generated. Formats: 'text' (plain text; with include_timestamps, ~30 s paragraphs prefixed [m:ss]), 'segments' (array of {start, duration, text}) or 'srt'. Can machine-translate captions via YouTube (translate_to).
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_transcript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video | Yes | YouTube video id (e.g. dQw4w9WgXcQ) or URL (watch?v=, youtu.be/, /shorts/, /embed/, /live/) | |
| format | No | Output format. Default 'text'. | text |
| languages | No | Preferred caption languages in priority order, e.g. ["en", "de"]. Manual captions beat auto-generated ones. Default ["en"]. | |
| max_chars | No | Truncate the transcript content to about this many characters (sets truncated=true). | |
| translate_to | No | Optional target language code; YouTube translates the best available track. | |
| include_timestamps | No | text: prefix paragraphs with [m:ss]; segments: add a 'time' string. SRT always has timing. | |
| allow_auto_generated | No | Allow auto-generated (ASR) captions. Default true. | |
| fallback_to_any_language | No | If none of `languages` exists, return the best available track instead of failing. Default true. |