download_video
Resolve any video URL — direct files, HLS/DASH manifests, or embedded players — and download it as mp4, or extract just the audio as m4a. Save locally and get the file path back.
Instructions
Download a video (or just its audio) from a page or media URL via yt-dlp — which handles what a plain file download can't: direct mp4/webm, HLS/DASH manifests (.m3u8/.mpd), and YouTube/Vimeo/embedded players resolved from the page URL.
Muxes best video+audio to mp4, or extracts m4a with audio_only=true. Saves to ~/Downloads by default (override with dest_dir or MDBROWSE_DOWNLOADS). Returns the saved path. For gated video, set MDBROWSE_YTDLP_BROWSER (e.g. 'chrome'/'safari') to ride your browser cookies; it retries anonymously if the cookie backend fails. Use this for a /embed a user wants to keep; use download_document for a plain file (PDF, image, dataset).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| dest_dir | No | ||
| audio_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |