Check Captions
check_captionsValidates SRT/VTT captions or cue lists against standards like Netflix, BBC, or social 9:16, flagging timing, line-length, overlap, shot-change, and safe-area issues without altering Premiere.
Instructions
Read-only caption QA against a published standard (default netflix_adult): reading speed, line length and count, durations, gaps, overlaps, line-break grammar, shot changes (cut_times) and an estimated safe area for 9:16. Input: file_path (.srt/.vtt), text, plan_path or cues (e.g. from read_sequence_captions). Local-only; never changes Premiere.
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": "check_captions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cues | No | Cues to check, for example the captions read back by read_sequence_captions or a plan's captions. At most 20000. Provide exactly one of file_path, text, plan_path or cues. | |
| text | No | SRT or WebVTT text (at most 5 MiB). Provide exactly one of file_path, text, plan_path or cues. | |
| frame | No | Output frame in pixels, for the safe-area estimate. | |
| format | No | Format of text or file_path. Default: from the file extension, else WEBVTT header means vtt, else srt. | |
| standard | No | The standard to check against: netflix_adult (default), netflix_kids, bbc, dcmp or social_9x16. | |
| cut_times | No | Shot changes in sequence seconds, from detect_scene_edits / scene_edit_detection or the sequence's edit points. Captions that straddle or sit close to one are flagged. | |
| file_path | No | Absolute path of a .srt or .vtt file inside approved_workspace_path (realpath-checked, at most 5 MiB). Requires approved_workspace_path. Provide exactly one of file_path, text, plan_path or cues. | |
| plan_path | No | Absolute path of a saved caption plan (.json written by plan_captions) inside approved_workspace_path. Requires approved_workspace_path. Without standard, the plan's own standard is used. Provide exactly one of file_path, text, plan_path or cues. | |
| safe_area | No | Estimate each cue's text box and flag cues outside this safe area. Needs frame and font_size_px. Default when those are given: reels_9_16 for a portrait frame, landscape_16_9 otherwise. Estimates, not measurements. | |
| frame_rate | No | Frames per second of the sequence, for the gap checks. Without it (and without sequence_timebase_ticks) it is inferred from the cue times and the result says frame_rate_inferred. | |
| max_issues | No | Most issues listed (default 200); counts always cover all of them and truncated says whether the list was cut. | |
| font_size_px | No | Caption font size in pixels at that frame, for the safe-area estimate. | |
| baseline_y_pct | No | Where the last line's baseline sits, percent of the frame height. Default: the bottom of the safe area's caption band. | |
| idempotency_key | No | Optional client-chosen key (1-128 chars of A-Z a-z 0-9 . _ : -) for this intended edit. Pass a fresh key per edit and reuse it only when retrying that same edit, for example after a client-side timeout. A repeat with the same tool, key and arguments is not run again: while the first call is running it fails with IDEMPOTENCY_IN_PROGRESS (poll get_last_operations); after it finished it returns the original outcome marked replayed. A definite failure with nothing applied (receipt outcome not_applied) may be retried with the same key. Reusing a key with different arguments fails with IDEMPOTENCY_KEY_REUSED. Scoped to this MCP session (the stdio server process, or the HTTP server process when Streamable HTTP is stateless per request) and held in memory only (200 keys, 1 hour); it does not survive a restart or reconnect. Read-only invocations are never deduplicated. | |
| char_width_ratio | No | Average glyph width as a share of the font size (default 0.55; about 0.45 for a condensed face, 0.65 for a wide one). | |
| expected_cep_target | No | Optional reviewed CEP sequence/clip identity and exact tick ranges. Checked before every generated command; UXP refuses this CEP-only guard. | |
| expected_project_path | No | Optional absolute saved-project path. Every generated CEP command refuses before its body when the active project differs or is unsaved. UXP commands refuse this CEP-only guard; local-only tools do not inspect Premiere. Omit to keep existing behavior. | |
| approved_workspace_path | No | Absolute path of an existing directory the caller approved for file access. transcript_path, plan_path and output paths must be inside it. | |
| sequence_timebase_ticks | No | Premiere ticks per frame of the sequence (the timebase from get_sequence_settings; 254016000000 ticks make a second). Converted to a frame rate with the common rates snapped (23.976, 25, 29.97 ...). An error when frame_rate is also given and differs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool completed successfully. | |
| data | No | Tool-specific result data when ok is true; on failure, diagnostic detail when the tool provides it. | |
| tool | Yes | The registered MCP tool name. | |
| error | No | Failure detail when ok is false. | |
| receipt | No | Versioned common mutation receipt; success never implies rendered verification. | |
| idempotency | No | Present when idempotency_key deduplicated this call: replayed is true when the original outcome was returned instead of running again. |