youtube_clip
Extract multiple clips from a YouTube video by specifying start and end timestamps. Downloads source once, then cuts each clip, optionally creating a highlight reel.
Instructions
Extract one or more clips from a YouTube video by timestamp. Downloads the source video once at 720p, then cuts each clip. Each clip needs startTime and endTime (seconds, MM:SS, or HH:MM:SS) and an optional label for the filename. Uses fast keyframe-aligned cuts by default — do NOT set accurate: true unless the user explicitly asks for frame-perfect precision (it re-encodes and is much slower). Keep clips tight — 5-10 seconds each, capturing one key moment per clip. When 2+ clips are provided, automatically produces a per-video highlight reel alongside individual clips.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clips | Yes | One or more clip definitions with start/end timestamps | |
| force | No | Bypass the duration guard for long videos | |
| quality | No | Video quality for the source download (default: best) | |
| videoId | Yes | YouTube video ID | |
| accurate | No | Frame-accurate cuts via re-encoding — MUCH slower. Only use when the user explicitly needs frame-perfect precision. Default fast keyframe cuts are fine for nearly all use cases (default: false) | |
| outputDir | No | Output directory for clip files (defaults to current directory) | |
| highlightReel | No | Combine all clips into a single highlight-reel video (default: true). Set to false for individual clips only. |