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.
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. |