convert_subtitles
utilpeek: Convert SRT, WebVTT and JSON subtitles; scale or shift timing. To make subtitles from audio use transcribe_audio. Returns SRT, WebVTT or JSON segments [{start, end, text}] in seconds, with optional timing scale and shift. Cue bounds and WebVTT inline timestamps map to round(ms * time_scale) + shift_ms, ties to even. At most 1,000,000 characters and 10,000 cues. Malformed input is a 422, not charged. Starts clamp at 0; with a negative shift, cues ending at or before 0 are dropped. Times past 99:59:59.999 are refused. 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: srt (SubRip), vtt (WebVTT) or json (a list of {start, end, text}, seconds). | |
| content | No | The SRT or WebVTT file as text (at most 1,000,000 characters, 10,000 cues). The format is detected from a WEBVTT header unless from_format is given. Use this or segments. | |
| segments | No | A JSON segment list [{start, end, text}] in seconds, as /v1/audio/transcribe returns it. Use this or content. | |
| shift_ms | No | Time shift in milliseconds, after scaling (negative = earlier; cues ending at or before 0 are dropped). | |
| time_scale | No | Timing multiplier, 0.5 to 2.0; default 1. Cue bounds and WebVTT inline timestamps become round(ms * time_scale) + shift_ms; ties round to even. | |
| from_format | No | Input format check: content is srt or vtt, segments are json. |
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 |