Cut captions for a clip
clip_captionsExtract only the captions within a start and end time from a caption file, trim cues crossing the boundaries, and optionally re-zero timing so the selected clip begins at 00:00.
Instructions
Keep only the captions inside a time range and re-zero them to start at 00:00 — for when you cut a short clip out of a long video or podcast. Cues crossing the edges are trimmed to the range.
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": {
"start": "<start>",
"end": "<end>"
},
"name": "clip_captions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Clip end in the source. | |
| path | No | Local caption file (.srt, .vtt, .ass/.ssa, .json). ~ is expanded. | |
| start | Yes | Clip start in the source, e.g. "00:12:03.5" or "723.5s". | |
| format | No | Input format. Detected automatically when omitted. | |
| rezero | No | Shift so the clip starts at 00:00:00. | |
| content | No | Caption text, if you don't have a file. | |
| overwrite | No | Allow replacing an existing file. | |
| 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). |