Download YouTube Video
download_videoDownload YouTube videos to local storage with quality presets or specific format IDs, providing automatic fallbacks. Returns the file path, title, and format details.
Instructions
Download a YouTube video to local disk. Use the quality parameter for automatic format selection with smart fallbacks, or formatId for a specific format from list_formats. Returns the downloaded file path, title, and format details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video | Yes | YouTube video ID (e.g., dQw4w9WgXcQ) or full URL | |
| quality | No | Quality preset with smart fallback. "best" selects highest available. Specific resolutions fall back to next best if unavailable. "audio" extracts audio only. Default: best | |
| formatId | No | Specific format code from list_formats (e.g., "22", "137+140" for combined). Overrides quality when provided. | |
| outputDir | No | Output directory path. Default: ~/.youtube-knowledge/downloads/ |