Media
Edita tiempos, desplaza cues, repara solapamientos, calibra CPS, ajusta lineas y exporta SRT, VTT, ASS o TTML.
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'https://api.elysiatools.com/es/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}'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/srt-vtt-subtitle-editor| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| subtitleText | textarea | Sí | — |
| inputFormat | select | No | — |
| outputFormat | select | No | — |
| shiftMilliseconds | number | No | — |
| repairMode | select | No | — |
Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-srt-vtt-subtitle-editor": {
"name": "srt-vtt-subtitle-editor",
"description": "Edita tiempos, desplaza cues, repara solapamientos, calibra CPS, ajusta lineas y exporta SRT, VTT, ASS o TTML.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=srt-vtt-subtitle-editor",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"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
}
}
}| applyCpsCalibration |
| checkbox |
| No |
| — |
| targetCps | number | No | — |
| maxLineLength | number | No | — |
Resultado HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}¿Dudas o problemas? Contacta con [email protected]