extract_clips
Cuts the best moments from a long video into captioned vertical shorts of about 30 seconds using transcription, moment scoring, face tracking, and burned-in captions.
Instructions
Cut the best moments out of a long video (a local file or a YouTube or other video link) into captioned vertical shorts of about 30 seconds each (never over 60): it transcribes the speech with Whisper, scores the moments, crops to 9:16 with face tracking and burns in captions. Use it when the user already has a video; use generate_short to make one from a topic, or dub_video to change its language. Returns {job_id, status, message} at once and works in the background, several minutes or more for a long video and slower without an NVIDIA GPU; poll get_render_status until 'completed' (its 'outputs' lists the clip paths) or 'failed'. Side effects: a linked video is downloaded; a local source is only read, never changed; clips are written under sessions/ in the ShortsFlow folder; nothing is uploaded or posted. Works without any API key; with an AI key the transcript goes to that provider for scoring and titles.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source_video": "<source_video>"
},
"name": "extract_clips"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layout | No | Framing: single = face-tracked crop; split = two speakers stacked; active = cut to whoever is talking (stacked when unsure), best for podcasts and interviews; fit = the whole picture centred over a blurred copy of itself, nothing cropped off the sides (screen recordings, gameplay). | single |
| tighten | No | Cut out silences and dead air inside each short. | |
| language | No | Language spoken in the video as a code (en, hi, es, fr, ...), or 'auto' to detect it. | en |
| auto_edit | No | Edit like an editor: cuts, zooms, cutaways, teaser opening, colour and sound effects for this kind of video. Left out, no such edit is made. | |
| clip_count | No | How many shorts to cut out, 1 or more. Fewer come back when the video has fewer good moments. | |
| smart_crop | No | Follow the speaker's face when cropping the wide video to vertical. | |
| source_video | Yes | The video to clip: an http(s) link (YouTube and other sites) or the path of an existing local file (absolute, or relative to the ShortsFlow folder). Required. | |
| use_remotion | No | Animated captions (needs Node.js). False renders without animated captions. | |
| caption_style | No | Animated caption look (needs use_remotion): HORMOZI = bold yellow single words, GLOW_BOX = words in boxes with a pink highlight, BOUNCE = bouncy gold single words, MINIMAL = clean dark boxes, KARAOKE = colour sweep along the line, NEON = glow, BAR = subtitle bar, MARKER = highlighter sweep, SOFT = words fading in, WORDCUT = words cut in, NEGATIVE = muted keyword, HANDWRITTEN = script with an underline, SIMPLE = tall plain capitals, TYPEWRITER = typed letter by letter, AUTO/RANDOM = pick for me. | HORMOZI |
| edit_strength | No | Only with auto_edit: how much of the edit shows (subtle keeps it quiet, hyped uses everything). | medium |