save_transcript
Fetch a YouTube video's transcript and write it to a file in TXT, SRT, VTT, Markdown, or JSON format, returning the saved file path for later use.
Instructions
Fetch a transcript and write it to a file (txt / srt / vtt / md / json).
Returns the absolute path written. Writes are restricted to the YOUTUBE_MCP_OUTPUT_DIR directory for safety.
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": "<video>",
"filename": "<filename>"
},
"name": "save_transcript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video | Yes | YouTube URL (watch, youtu.be, /shorts/, /live/, /embed/) or an 11-character video ID. | |
| format | No | Output format: text | timestamped | markdown | srt | vtt | json (default: text). | srt |
| prefer | No | Backend: 'auto' (caption API then yt-dlp), 'api', 'ytdlp', or 'whisper' (default: auto). | auto |
| filename | Yes | Output file name or path. Relative paths are resolved inside YOUTUBE_MCP_OUTPUT_DIR. | |
| language | No | BCP-47 caption language code, e.g. 'en', 'fr', 'es', 'de', 'ja'. Empty = server default ('en'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |