downloadAsset
Download YouTube videos, audio tracks, or thumbnails to local storage with format selection and size limits. Stores media files for offline access and returns file path information.
Instructions
Download a YouTube video, audio track, or thumbnail to local storage. Returns asset manifest entry with file path. Does NOT perform visual indexing — this is honest file storage. [~30-120s, downloads media]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| videoIdOrUrl | Yes | YouTube video ID or URL | |
| format | Yes | What to download. best_video = highest quality video+audio, best_audio = audio only, thumbnail = YouTube thumbnail image, worst_video = smallest video for previews | |
| maxSizeMb | No | Max download size in MB (default 500) |