Validate SRT or WebVTT subtitles
validate_srtChecks pasted SRT or WebVTT subtitle text and lists problems per subtitle: overlapping or out-of-order timings, gaps shorter than the minimum frame gap, reading speed (characters per second), line length, line count, too short or too long durations, and broken characters from a wrong encoding (mojibake such as 'é' or '’', with the probable correct text). Optionally returns a corrected SRT. The text is only processed for this response.
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": {
"srt_text": "<srt_text>"
},
"name": "validate_srt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Video frame rate used for the minimum gap. Default 25. | |
| preset | No | Rule set: 'netflix' (42 chars/line, 2 lines, 17-20 CPS, 0.83-7 s; default), 'vertical' (short-form vertical video: 32 chars/line, 2 lines, 17-20 CPS, 1-5 s) or 'children' (42 chars/line, 13-17 CPS). | |
| srt_text | Yes | Full text of the .srt or .vtt file. | |
| min_gap_frames | No | Minimum gap between subtitles in frames. Default 2. | |
| include_fixed_srt | No | Also return a corrected SRT (encoding fixed, overlaps trimmed, long single lines split, short subtitles extended). Default false. |