Save YouTube transcript to a file
youtube_save_transcriptExport a YouTube video's transcript to a local .md or .txt file for offline reading.
Instructions
Fetches a YouTube video's transcript and writes it to a local .md or .txt file, returning the file path. Use this when the user wants the full transcript exported for later reading, rather than reproduced in the chat.
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": "youtube_save_transcript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | A YouTube video URL (e.g. https://youtube.com/watch?v=..., https://youtu.be/..., or a Shorts link) or an 11-character video ID. | |
| lang | No | Optional ISO language code for the transcript (e.g. 'en', 'es'). Defaults to the video's default caption track. | |
| destination | No | Optional file path or filename (.md or .txt) for the saved transcript. If it's a plain filename or omitted, the file is saved in the user's Downloads folder. |