Re-chunk captions (reel style or standard)
reflow_captionsRebuild existing caption cues into short reel-style captions or balanced standard subtitle lines, splitting overlong cues at sentence and phrase boundaries.
Instructions
Rebuild caption chunks from existing cues. reels: short 1–3 word punchy captions like on Instagram/TikTok/Shorts, timed by splitting each cue's duration across its words. standard: rewrap into balanced ≤42-character lines, max 2 per cue, splitting overlong cues. Breaks prefer sentence and phrase boundaries.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "reflow_captions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Local caption file (.srt, .vtt, .ass/.ssa, .json). ~ is expanded. | |
| style | No | reels: 1–3 words per caption, one short line. standard: up to 42 chars × 2 balanced lines. custom: use the limits below. | reels |
| format | No | Input format. Detected automatically when omitted. | |
| content | No | Caption text, if you don't have a file. | |
| ass_style | No | Styling for ASS output (used when burning captions into video). | |
| max_lines | No | ||
| max_words | No | Max words per caption (reels default 3). | |
| overwrite | No | Allow replacing an existing file. | |
| uppercase | No | ALL CAPS captions (reels default: false). | |
| output_path | No | Write the result here. Format follows the extension unless `to` is set. Omit to get the text back inline. | |
| output_format | No | Output format. Defaults to the input format (or the output_path extension). | |
| min_duration_ms | No | ||
| strip_punctuation | No | Drop periods, commas and quotes, keep ? and ! (reels default: true). | |
| max_chars_per_line | No |