Convert or retime subtitles (SRT/WebVTT)
convert_subtitlesConverts caption text between SubRip (.srt) and WebVTT (.vtt), optionally shifting every timestamp by a number of milliseconds, and reports format problems (missing numbers, comma/period timestamps, captions run together). Runs entirely on the server with the open-source subtitle code used by the markstudios.com caption tools; nothing is stored.
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": {
"captions": "<captions>"
},
"name": "convert_subtitles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Output format; 'same' keeps the input format (use with shift_ms or to clean up). | same |
| captions | Yes | The full text of the .srt or .vtt file. | |
| filename | No | Original file name, if known; helps tell .srt from .vtt. | |
| shift_ms | No | Milliseconds to add to every timestamp (negative moves captions earlier). |