youtube_transcript
Extract a YouTube video's spoken transcript with timestamped segments, precise language control, and optional translation. Avoid silent language swaps with explicit fallback settings.
Instructions
Extract the spoken transcript of a YouTube video with timestamped segments and language provenance. Returns requested_language, actual_language, and fallback_used flags. Never silently swaps languages unless fallback_language is specified.
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_id": "<video_id>"
},
"name": "youtube_transcript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Desired caption language code (e.g. 'en', 'hi', 'es') | en |
| video_id | Yes | 11-character YouTube video ID or full YouTube URL | |
| translate_to | No | Optional target language code to translate captions into (e.g. 'es', 'fr', 'de') | |
| fallback_language | No | Language code to use ONLY IF the requested language is completely unavailable (set to null/None to disable fallback) | en |
| include_timestamps | No | If true, returns structured segments with start/end timecodes and deep links. If false, returns clean text only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||