SRT timing and CPS stats
srt_statsSummarizes an SRT document with cue count, total and average durations, first-to-last span, and per-cue character counts and CPS, helping you check subtitle timing and reading speed.
Instructions
Summarise an SRT document: cue count, total on-screen duration, span from first start to last end, average and max characters-per-second, and a per-cue breakdown of start/end, duration, character count, and CPS. Uses the same grapheme rules as lint_srt.
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": "srt_stats"
}
}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) |