download_video
Download a single video from a URL to your Downloads folder. Avoids accidental playlist downloads unless the allow_playlist flag is set.
Instructions
Download a video from a URL (YouTube and hundreds of other sites via yt-dlp) to disk. Saves into ~/Downloads by default. Refuses playlist URLs unless allow_playlist is set, to avoid downloading an entire playlist by accident. yt-dlp must be installed separately and reachable on PATH.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The video URL to download. | |
| quality | No | Desired quality/format. Defaults to "best". | |
| output_dir | No | Folder to save into, relative to home (e.g. "Downloads", "Downloads/clips"). Defaults to Downloads. | |
| allow_playlist | No | If true and the URL is a playlist, download every video in it. Default false (single video only). |