Convert subtitles between SRT, VTT and ASS
convert_subtitlesConvert subtitle file contents between SRT, WebVTT, and ASS/SSA, optionally shift cue timing, and return converted text with cue count and warnings.
Instructions
Convert subtitle text between SRT, WebVTT and ASS/SSA, optionally shifting every cue by shiftMs, and return the converted text with the cue count and any warnings. Pass the file contents, not a path. The input format is detected from the content unless fromFormat is given. Malformed blocks are skipped with a warning instead of failing the whole file; converting to ASS rounds timings to 10 ms. Errors when the format cannot be detected or no cue could be parsed.
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": {
"input": "<input>",
"toFormat": "<toFormat>"
},
"name": "convert_subtitles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The full subtitle file contents as text. | |
| shiftMs | No | Move every cue by this many ms: positive is later, negative earlier. Cues pushed before 0 clamp to 0. | |
| toFormat | Yes | Format to convert to. | |
| fromFormat | No | Format of the input. Omit to detect it from the content. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | Yes | ||
| shiftMs | Yes | ||
| cueCount | Yes | ||
| toFormat | Yes | ||
| warnings | Yes | ||
| fromFormat | Yes | ||
| referenceToolUrl | Yes |