Apply safe SRT fixes
fix_srtApply safe mechanical corrections to an SRT file: renumber cues, normalize timestamps to HH:MM:SS,mmm, and wrap long lines. Returns the updated SRT plus remaining issue counts that need manual review.
Instructions
Apply only safe, mechanical fixes to an SRT document: renumber cues to 1…n (inserting a missing index), normalize timestamps to HH:MM:SS,mmm, and wrap long lines at spaces (English) or at a character (CJK). Does not change overlaps, negative/zero duration, or high CPS — those need a human look. Returns the updated SRT text and remaining issue counts.
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": "fix_srt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| srt | Yes | Full SRT file contents | |
| fixes | No | Which safe fixes to apply. Defaults to all three. | |
| 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) |