download_tweet_video
Download video(s) attached to a tweet via yt-dlp. Accepts tweet ID or URL, optional output directory, and format selector.
Instructions
Download video(s) attached to a tweet via yt-dlp.
Args: tweet_id: Tweet ID (numeric string) or full URL. output_dir: Where to save. Default: $TWIKIT_DOWNLOAD_DIR or ~/Downloads/twikit-mcp/. format: yt-dlp format selector. Default "best[ext=mp4]" (single muxed mp4, no ffmpeg required). Pass "bestvideo+bestaudio" for separate-stream max-quality merge (requires ffmpeg).
Returns: JSON with path, size_bytes, duration_sec, format, width, height, url, tweet_id. Raises ToolError if yt-dlp / ffmpeg is missing, the tweet has no video, or download fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tweet_id | Yes | ||
| output_dir | No | ||
| format | No | best[ext=mp4] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |