youtube_get_transcript
Retrieve YouTube video transcripts with selectable formats (text, segments, both) and time-range options to control output size for AI analysis.
Instructions
Get the transcript of a YouTube video. Control output size with: "format" — "text" (fullText only, smallest), "segments" (timestamps only), or "both" (default). Use "startTime"/"endTime" (seconds) to grab a specific section (pairs well with chapter timestamps from youtube_get_video_info). Use "maxSegments" to cap output for previewing long videos.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Response format — "text" (fullText only, smallest response), "segments" (timestamped array only), or "both" (default). Use "text" to cut response size roughly in half. | |
| endTime | No | Only return segments before this time (seconds). | |
| videoId | Yes | YouTube video ID | |
| language | No | Language code (default: "en") | |
| startTime | No | Only return segments at or after this time (seconds). Pairs well with chapter timestamps from youtube_get_video_info. | |
| maxSegments | No | Max segments to return (capped at 5000). Good for previewing long videos without blowing up context. |