How long a script takes to say
time_scriptCounts the words of a script and says how long it takes to say out loud at a speaking pace (about 150 words a minute unless the user gives theirs). With a target length, it also says how many words to cut or add to fit it, for example 60 seconds for a Reel, a Short or a TikTok. Use it when the user asks how long their script is, or wants it to fit a time. It changes nothing and stores nothing.
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": {
"script": "<script>"
},
"name": "time_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | The script exactly as the user will say it, with an empty line between paragraphs. Leave out headings, shot directions and notes such as [B-roll] or (pause) unless the user wants them on screen. | |
| target_seconds | No | The length the script has to fit, in seconds (60 for a one-minute Reel). | |
| words_per_minute | No | The speaker's pace. Most people speak to camera at 130 to 160. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| words | Yes | ||
| words_to_cut | No | Words to remove to fit the target (0 when it fits). | |
| target_seconds | No | ||
| words_to_spare | No | Words that could still be added within the target. | |
| speaking_seconds | Yes | ||
| words_per_minute | Yes |