generate-subtitles
Generate subtitles for local video files using AI speech-to-text. Converts audio to SRT or VTT subtitle files with optional language selection.
Instructions
Generate subtitles for a local video file using AI speech-to-text (OpenAI Whisper or local whisper). Creates an SRT or VTT file alongside the video.
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": {
"video_path": "<video_path>"
},
"name": "generate-subtitles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video_path | Yes | Absolute path to the local video file to generate subtitles for | |
| engine | No | Whisper engine to use. 'openai' uses OpenAI Whisper API (requires OPENAI_API_KEY), 'local' uses locally installed whisper. Default: auto-detect | |
| language | No | Language code for transcription (e.g., 'en', 'es', 'fr'). Default: auto-detect | |
| output_format | No | Subtitle format. Default: srt |