ass_qc
Check selected subtitle lines for high CPS, duration, character and line limits, overlaps, gaps, empty text, missing styles, and tag issues; return a structured issue report.
Instructions
QA a selection of lines and return a structured issue report.
cps is the number of visible characters — override tags are stripped and
line breaks are not counted — divided by the line's duration in seconds.
Drawing lines ({\\p1}) carry no readable text, so they are skipped by the
text checks and reported once each as an info issue with code
drawing_line.
Args:
selection: lines to check; None/[] means every line.
doc_id: document id.
cps_warn: cps at or above which a line is cps_high (warning).
cps_max: cps at or above which a line is cps_extreme (error).
min_duration_ms: shorter lines are too_short (warning).
max_duration_ms: longer lines are too_long (warning).
max_chars: more visible characters is too_many_chars (warning).
max_lines: more \N-breaks is too_many_lines (warning).
check_overlaps: report overlap_same_layer for lines on the same layer
(different layers never overlap by design).
check_gaps: report gap_tiny for same-layer gaps below 100 ms.
check_empty: report empty_text.
check_styles: report style_missing for styles the document lacks.
check_tags: report unclosed_override_block and unknown_tag.
Returns:
{"doc_id", "parameters": {...}, "summary": {"lines_checked", "dialogue", "comments", "drawings", "issues", "errors", "warnings", "infos", "by_code": {...}, "ok", "clean"}, "issues": [{"code", "severity", "index", "message", "details"}]} — ok is False when any
error was found, clean is True only when there are no issues at all.
Issues are sorted by line index then code.
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": "ass_qc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | No | ||
| cps_max | No | ||
| cps_warn | No | ||
| max_chars | No | ||
| max_lines | No | ||
| selection | No | ||
| check_gaps | No | ||
| check_tags | No | ||
| check_empty | No | ||
| check_styles | No | ||
| check_overlaps | No | ||
| max_duration_ms | No | ||
| min_duration_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||