Get a transcript
youtube_transcriptYouTube API: Get a transcript. The transcript of a video as timed segments and plain text. Without lang you get the video's default caption track. format=vtt puts a WebVTT subtitle file in text; format=chunks returns chunks (index, text, start, end in seconds) with the chunk_size and chunk_overlap used: whole segments merged into pieces of about chunk_size characters, ready for embeddings. Price: 1 credit per call; failed calls are free.
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 |
|---|---|---|---|
| lang | No | Language code (e.g. `en`, `it`, `pt-BR`); auto-translated when the video doesn't have it | |
| format | No | `json` (segments + text), `text` or `srt`. `vtt` (WebVTT subtitles in `text`) or `chunks` (timestamped chunks for embeddings, in `chunks`). | json |
| video_id | Yes | 11-character video ID | |
| chunk_size | No | `format=chunks` only: target characters per chunk (segments are never split) | |
| chunk_overlap | No | `format=chunks` only: characters of whole segments repeated from the end of the previous chunk (less than `chunk_size`) |