convert_subtitles
Convert SRT, WebVTT, or JSON subtitles and adjust cue timing by scaling or shifting. Use it to retime and reformat captions for video playback or editing.
Instructions
utilpeek: Convert SRT, WebVTT and JSON subtitles; scale or shift timing. To make subtitles from audio use transcribe_audio. Returns converted subtitles. At most 1,000,000 characters and 10,000 cues. For plain segments to WebVTT, set literal_segment_text: true. Invalid input: uncharged 422. Starts clamp at 0; negative shifts drop cues ending at or before 0. Max time 99:59:59.999. Typically under 0.3 s. Price: USD 0.002. Free: 10 utilpeek calls per IP per UTC day. Docs: https://tanod.dev/learn/subtitle-converter-api.html
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": {
"to": "<to>"
},
"name": "convert_subtitles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Output format. | |
| content | No | SRT or WebVTT text. | |
| segments | No | Segments in seconds. | |
| shift_ms | No | Shift in milliseconds after scaling. | |
| time_scale | No | Scale cue and inline times; ties round to even. | |
| from_format | No | Input format; auto-detected if omitted. | |
| literal_segment_text | No | Escape cue text; only for segments to vtt. | |
| preserve_vtt_cue_ids | No | Keep exact cue IDs; requires from_format and to both vtt. | |
| preserve_vtt_cue_settings | No | Keep cue placement; requires from_format and to both vtt. | |
| preserve_vtt_timestamp_map | No | Keep the HLS map; requires from_format and to both vtt. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| cues | No | ||
| from | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| output | No | ||
| dropped | No | ||
| duration | No | ||
| segments | No | ||
| shift_ms | No | ||
| operation | No |