extract_video_clip
Extract a video clip from a YouTube video or local file by specifying start and end timestamps. The clip is saved with an optional buffer to avoid cutting off content.
Instructions
Extract a video clip by topic from a YouTube video or local file.
Used after transcribe_video. The LLM reads the transcript, finds the timestamps for the requested topic, and calls this tool to cut the clip. The user just asks "extract the part about X" - no manual timestamps needed.
A buffer is added before and after to avoid cutting off content. The clip is saved to ~/clips/.
Sample prompts that trigger this tool: - "Extract the part where they talk about memory bandwidth" - "Save the segment where they discuss pricing" - "Cut out the section about the hardware specs" - "Get me the intro of this video"
Args: url: YouTube URL, video URL, or local file path. start_seconds: Start time in seconds (e.g. 150 for 2:30). end_seconds: End time in seconds (e.g. 315 for 5:15). buffer_seconds: Extra seconds before/after the segment (default: 3). output_filename: Optional filename for the clip (without extension).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| start_seconds | Yes | ||
| end_seconds | Yes | ||
| buffer_seconds | No | ||
| output_filename | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |