Media
Edit subtitle timing, shift cues, repair overlaps, calibrate CPS, wrap long lines, and export SRT, VTT, ASS, or TTML.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/srt-vtt-subtitle-editor' \
-H 'Content-Type: application/json' \
-d '{"subtitleText":"1\n00:00:00,000 --> 00:00:01,200\nWelcome to the lesson\n\n2\n00:00:01,000 --> 00:00:02,000\nThis line overlaps and needs repair.","inputFormat":"srt","outputFormat":"srt","shiftMilliseconds":250,"repairMode":"shift-overlaps","applyCpsCalibration":true,"targetCps":17,"maxLineLength":42}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/srt-vtt-subtitle-editor| Name | Type | Required | Description |
|---|---|---|---|
| subtitleText | textarea | Yes | — |
| inputFormat | select | No | — |
| outputFormat | select | No | — |
| shiftMilliseconds | number | No | — |
| repairMode | select | No | — |
| applyCpsCalibration |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-srt-vtt-subtitle-editor": {
"name": "srt-vtt-subtitle-editor",
"description": "Edit subtitle timing, shift cues, repair overlaps, calibrate CPS, wrap long lines, and export SRT, VTT, ASS, or TTML.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=srt-vtt-subtitle-editor",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "srt-vtt-subtitle-editor",
"arguments": {
"subtitleText": "1\n00:00:00,000 --> 00:00:01,200\nWelcome to the lesson\n\n2\n00:00:01,000 --> 00:00:02,000\nThis line overlaps and needs repair.",
"inputFormat": "srt",
"outputFormat": "srt",
"shiftMilliseconds": 250,
"repairMode": "shift-overlaps",
"applyCpsCalibration": true,
"targetCps": 17,
"maxLineLength": 42
}
}
}| checkbox |
| No |
| — |
| targetCps | number | No | — |
| maxLineLength | number | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]