yt-dlp
Download videos, extract audio, or fetch metadata from YouTube, Twitter/X, Instagram, TikTok, and many more sites.
Files1
View on GitHubSKILL.mdskills/yt-dlp/SKILL.md
GitHubyt-dlp
Wraps the yt-dlp CLI. Use for metadata extraction, format listing, and
(gated) downloads to local disk.
Use when
- "Download this video" / "grab the audio as mp3"
- "What's the title / duration / channel of this link?"
- Piping into
openai-whisperfor transcription (download audio → whisper) - Piping into
summarizewith video metadata + captions
Do not use when
- Live streaming playback — use a media player
- Bulk scraping of large channels — run yt-dlp directly with a queue
Tools
status— yt-dlp binary version + output dirinfo—url→ title, duration, channel, upload date, webpage URLformats—url→ list of available formats (id, ext, resolution, codecs, size)download—url+ optionalmode(videodefault /audio),format(yt-dlp -f selector),audio_format(mp3 default / m4a / opus),output_dir
Write gate
download requires YTDLP_ALLOW_DOWNLOAD=true. Without it, returns -32041.
Env
| Var | Default |
|---|---|
YTDLP_BIN |
yt-dlp |
YTDLP_OUTPUT_DIR |
$TMPDIR/agent-yt-dlp |
YTDLP_ALLOW_DOWNLOAD |
— (must be true to download) |
Typical flow
infoto confirm the URL is valid and preview title/duration.downloadwithmode=audiofor podcast-style content, then feed theoutput_pathintoopenai-whisper→summarize.