clean_subtitles_srt_vtt
Cleans raw SRT/VTT subtitles offline by removing timecodes and cue indices, deduplicating rolling captions, preserving speaker tags, and applying French typography.
Instructions
Locally cleans raw .SRT or .VTT subtitles offline: strips timecodes/cue indices, deduplicates YouTube rolling captions, preserves WebVTT speaker tags, and applies French non-breaking-space typography.
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": {
"content": "<content>"
},
"name": "clean_subtitles_srt_vtt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Raw .SRT or .VTT subtitle text to clean. | |
| merge_sentences | No | Merge short subtitle lines into readable paragraphs. | |
| french_typography | No | Apply French non-breaking-space spacing rules before : ; ? ! and inside « ». | |
| preserve_speakers | No | Preserve speaker prefixes and WebVTT <v Speaker> tags. | |
| deduplicate_rolling | No | Deduplicate overlapping rolling captions (e.g. YouTube auto-captions). |