reflow_vertical_subtitles
Reflow .srt, .vtt, or Whisper JSON captions into balanced 9:16 vertical or 16:9 cinema cues, preserving English words, numbers, currencies, ratios, and URLs.
Instructions
Reflow .srt, .vtt, or OpenAI Whisper verbose .json captions into balanced 9:16 vertical (<=13 CJK / <=26 ASCII) or 16:9 cinema (<=22 CJK / <=42 ASCII) .srt or .vtt cues using dynamic programming without splitting English words, numbers, currencies, ratios, or URLs.
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": {
"input": "<input>"
},
"name": "reflow_vertical_subtitles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Raw .srt, .vtt, or OpenAI Whisper verbose .json subtitle content to reflow. | |
| preset | No | Target aspect-ratio line-width preset: vertical_9_16 (13 CJK / 26 ASCII) or cinema_16_9 (22 CJK / 42 ASCII). | vertical_9_16 |
| maxCjkUnits | No | Optional custom CJK visual width ceiling per cue overriding the preset. | |
| outputFormat | No | Output subtitle serialization format (.srt or .vtt). | srt |
| stripFillers | No | When true, strips spoken CN/EN filler words prior to dynamic-programming line reflow. | |
| maxAsciiChars | No | Optional custom ASCII character ceiling per cue overriding the preset. | |
| stripTrailingPunct | No | When true (default), removes trailing commas/periods while keeping ?, !, and numbers intact. |