youtube_download
Download YouTube videos or audio to local files with selectable quality, type, and format. Long videos prompt confirmation unless forced.
Instructions
Download a YouTube video or audio track to a local file. Defaults to 720p quality. Supports quality selection (720p/1080p/best/etc.), download type (video+audio/audio/video), and format. Videos over 30 minutes trigger a confirmation prompt — use force: true to bypass. For video+audio, automatically downloads and muxes separate streams.
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": {
"videoId": "<videoId>"
},
"name": "youtube_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Download type — "video+audio" (default), "audio" (audio only), or "video" (no audio) | |
| force | No | Bypass the duration guard for long videos | |
| format | No | Container format (default: mp4) | |
| quality | No | Video quality (default: best) | |
| videoId | Yes | YouTube video ID | |
| outputPath | No | Output file path (defaults to <title>.<format> in current directory) |