Lint an SRT file
lint_srtParse SubRip (.srt) files and return diagnostics for cue numbering, invalid or overlapping timestamps, reading speed, long lines, empty cues, and WebVTT mislabeling.
Instructions
Parse a SubRip (.srt) document and return diagnostics for cue numbering, invalid or odd timestamps, end-before-start (negative duration), zero duration, overlaps, reading speed (CPS), line length, empty cues, too many lines, and WebVTT mislabelled as SRT. Character counts use Intl.Segmenter graphemes and ignore simple subtitle markup.
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": "<srt>"
},
"name": "lint_srt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| srt | Yes | Full SRT file contents | |
| maxCpsEn | No | Max characters per second for Latin cues (default 21) | |
| maxCpsCjk | No | Max characters per second for CJK cues (default 9) | |
| maxCharsEn | No | Max characters per Latin line (default 42) | |
| maxCharsCjk | No | Max characters per CJK line (default 16) |