Generate subtitles
get_subtitlesQueue a YouTube video for subtitle generation. Returns the job id, its duration in seconds and the minutes it takes from the account (1 per started minute of video, plus as much again per translation; null when the length is not known yet). Poll get_transcription until state is done, passing the requested format (srt or webvtt); the subtitles are in content, and srt_url/webvtt_url download them whole. Pass target_languages (max 10, e.g. ["Spanish", "French"]) to also translate the subtitles: each language appears in the result's translations array with its own srt/webvtt, and adds 1x the video length to the account's minute usage. tag_audio_events marks non-speech audio with tags like (laughter) or [music]; off by default, and the tag language may not match the video's. lyrics (songs, off by default) builds the subtitles from the song's published lyrics, showing every line where several singers sing at once; the result's lyrics_status is applied when it did, otherwise the subtitles are the usual ones.
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": {
"url": "<url>"
},
"name": "get_subtitles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Link to one YouTube video: youtube.com/watch?v=<id>, youtu.be/<id>, or a /shorts/, /live/ or /embed/ link (m.youtube.com works too). Playlist and channel links are refused; use `get_playlist` and `transcribe_playlist` for those. | |
| format | No | The subtitle format the user wants: `srt` (most editors) or `webvtt` (web players). Pass the same value as `format` to `get_transcription`. Both are produced either way. | srt |
| lyrics | No | For songs: build the subtitles from the song's published lyrics, timed on the audio, so every line shows where several singers sing at once. Off by default. Falls back to normal subtitles when no lyrics are found or they do not match; `lyrics_status` on the result says which happened. No extra cost. | |
| verbatim | No | Keep filler words (um, uh), false starts and repetitions instead of cleaning them up. Off by default. Same cost either way. | |
| language_code | No | The video's spoken language as an ISO-639-1 or ISO-639-3 code, e.g. "en", "es" or "yue"; a region subtag is dropped ("en-US" is "en"). Omit to auto-detect. Set it when the language is known: it improves accuracy and keeps the right alphabet. | |
| tag_audio_events | No | Mark non-speech audio with tags like (laughter) or [music]. Off by default: the transcriber picks the tag language itself and it may not match the video's. | |
| target_languages | No | Also translate the subtitles into these languages, as names in English, e.g. ["Spanish", "French"]. At most 10. Each language adds 1x the video length to the minutes used, so confirm the cost with the user before asking for several. |