caption_compare
Compare exactly two caption or subtitle files under identical bounded checks: an original versus its translated track, before versus after a timing fix, or a format migration. Attach two WebVTT, SRT, or TTML/IMSC caption files in chat or give two publicly fetchable URLs and it runs the same SSRF-guarded, 2 MB-capped preflight as caption_check on each, then aligns them by cue index and reports side-by-side pass status, detected-format and encoding differences, the cue-count delta, timing drift and overlap differences, reading-speed (CPS) regressions, structural-error deltas, and a winner only when the measured checks separate the two. Use caption_check for a single file. It reports only source-file conformance, timing, encoding, and reading-speed facts against a dated profile: never translation quality, transcription accuracy, or sync against the video. Fetching and parsing two live files can take up to 60 seconds. WebVTT limitation: the parser drops payload-less cues; cue counts, indices, timing checks and comparisons cover retained cues only, not those omitted cues.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "caption_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | No | Exactly two public caption URLs to compare, in the order they should appear side by side (for example original then translated). Provide either this or files, never both. STRICT RULE: Caption compare failed — provide either two caption URLs or two attached caption files, not both STRICT RULE: Caption compare failed — provide two public caption URLs or attach two caption files | |
| files | No | Exactly two caption files attached in chat to compare, in the order they should appear side by side (for example original then translated). Provide either this or urls, never both. | |
| profile | No | Named reading-speed profile applied to both tracks. netflix-adult-20 (default), netflix-children-17, youtube, ebu-tt. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | Notes about incomplete checks or completion under identical limits | |
| tracks | Yes | The two tracks in input order | |
| winner | No | Track with fewer weighted structural, timing, reading-speed, and line-length problems | |
| profile | Yes | Reading-speed and line-length profile applied to the caption checks | |
| checkedAt | Yes | ISO timestamp when the caption result was produced | |
| comparison | No | Measured differences between the two successfully preflighted tracks |