fetch_youtube_transcript
Retrieve a YouTube video's transcript by providing its video ID. Supports language selection and text or JSON output.
Instructions
Tool to fetch the transcript of a YouTube video.
:param video_id: The unique identifier of the YouTube video. :param lang_code: The language code for the transcript (default is 'en' for English). :param format: The desired output format of the transcript; either 'text' or 'json'. :return: The transcript in the specified format.
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": "fetch_youtube_transcript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video_id | Yes | ||
| lang_code | No | en | |
| format | No | json |