Fit a script to a length
fit_to_durationPlan how to hit a target script length: get a word budget, words to cut or add, per-section timing, and ranked cut candidates with seconds saved. Does not rewrite content.
Instructions
Plan how to hit a target length (e.g. 15, 30, 60 or 90 seconds): word budget, how many words to cut or add, a per-section budget, the pace that would fit as-is, and ranked cut candidates — filler words, wordy phrases and the longest sentences — with the seconds each would save. Does not rewrite creative content; use trim_fillers for safe automatic cuts.
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": {
"target_seconds": "<target_seconds>"
},
"name": "fit_to_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wpm | No | Custom words per minute (overrides pace). Measure yours with estimate_duration + actual_seconds. | |
| pace | No | slow 130 · conversational 150 · energetic 170 (typical Reels/TikTok) · fast 190 words per minute. | energetic |
| path | No | Or a local .txt / .md file. ~ is expanded. | |
| text | No | The script text. | |
| keep_sections | No | Sections that must not be cut (e.g. ["Hook", "CTA"]); their time is reserved first. | |
| target_seconds | Yes | Target length in seconds. |