Tools /
Auto-fix QC issues
Apply automatic fixes for common QC problems (long lines, overlaps, too-short cues) and return the corrected file.
autofix_subtitles
- Plan
- All plans
- Usage
- 1 upload
- Effect
- Returns a new file
Parameters
| Parameter | Type | Description |
|---|---|---|
contentrequired | string | Full subtitle file contents as text (SRT, WebVTT, ASS/SSA, or the JSON produced by convert_subtitles). |
filenameoptional | string | Original file name. The extension helps detect the format. |
formatoptional | enum | Input format. Detected from the file name or contents when omitted."srt" · "vtt" · "ass" · "ssa" · "json" |
outputFormatoptional | enum | Output format. Defaults to the format of the (first) input."srt" · "vtt" · "ass" · "json" |
Example
You ask your assistant:
“Fix whatever QC problems you can in this file.”
It calls autofix_subtitles with:
arguments
{
"filename": "ep1.srt",
"content": "1\n00:00:01,000 --> 00:00:03,500\nHello there.\n"
}and gets back:
result
Applied 14 fixes to 640 cues; score 91 → 99.