Read an SRT caption file
parse_srt_fileReads .srt or simple .vtt caption files and returns start/end/text segments in seconds, plus counts and diagnostics for skipped or problematic cues.
Instructions
Read an .srt (or simple .vtt) caption file and return its captions as {start, end, text} segments in seconds, plus count, duration, skipped blocks with reasons and problems (ordering, overlaps, empty text). Reads the file directly; Premiere is not needed. Use list_caption_tracks for captions already on a sequence.
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": {
"file_path": "<file_path>"
},
"name": "parse_srt_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum segments returned. Default: all (count still reports every segment). | |
| file_path | Yes | The caption file. Absolute path. |