extract_subtitles
Extract subtitle tracks from video files and save them as standalone subtitle files in SRT, VTT, or ASS formats.
Instructions
Extract a subtitle track from a video file and save it as a standalone subtitle file.
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": "extract_subtitles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the input video file | |
| output_path | No | Absolute path for the output subtitle file. Defaults to same directory with '_subtitles' suffix. | |
| stream_index | No | Zero-based index of the subtitle stream to extract (default 0 = first subtitle track) | |
| output_format | No | Subtitle format: srt, vtt, or ass. Defaults to srt. |