get_transcript
Convert YouTube videos into transcripts, using human or auto-generated captions and preserving timing with timestamped or JSON output.
Instructions
Convert a YouTube video into a transcript.
Returns human captions when available, otherwise YouTube auto-generated
captions, with an automatic yt-dlp fallback if the caption API is blocked.
Use format='timestamped' or format='json' to keep timing information.
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 URL (watch, youtu.be, /shorts/, /live/, /embed/) or an 11-character video ID. | |
| format | No | Output format: text | timestamped | markdown | srt | vtt | json (default: text). | text |
| prefer | No | Backend: 'auto' (caption API then yt-dlp), 'api', 'ytdlp', or 'whisper' (default: auto). | auto |
| language | No | BCP-47 caption language code, e.g. 'en', 'fr', 'es', 'de', 'ja'. Empty = server default ('en'). | |
| max_chars | No | Clip the output to this many characters. 0 = no limit. Use for long videos. | |
| translate_to | No | Optional target language code to translate captions into (e.g. 'en'). Empty = no translation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |