subtitle-lint
Subtitle lint: SRT and WebVTT overlaps, duration, reading speed, line length — Parses an SRT or WebVTT file (up to 400000 characters, 4000 cues) and checks every cue for an agent about to deliver or burn in captions: end after start, overlaps and out-of-order cues, minimum gap, minimum and maximum duration, lines per cue, characters per line and characters per second (markup tags are not counted). Rules come from a named profile (netflix-en-adult, netflix-en-children, values
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": {
"text": "<text>"
},
"name": "subtitle-lint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The whole .srt or .vtt file. | |
| custom | No | Your own rules; these override profile values. | |
| format | No | Default: vtt if the text starts with WEBVTT, else srt. | |
| profile | No | netflix-en-adult: 42 chars/line, 2 lines, 20 cps, 5/6 s to 7 s, 2-frame gap. netflix-en-children: same at 17 cps. | |
| frameRate | No | Needed to turn a minimum gap in frames into milliseconds. |