Media
Audita subtítulos SRT, WebVTT y ASS por CPS, duración, longitud de línea, solapamientos y riesgo de expansión.
Llama a esta herramienta desde tu código en tres lenguajes.
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/subtitle-reading-speed-localization-auditor' \
-H 'Content-Type: application/json' \
-d '{"filename":"subtitleFile.ext","contentType":"application/octet-stream","size":12345}'
# 2) PUT the file bytes directly to the presigned uploadUrl
curl -X PUT '<presigned uploadUrl>' \
--data-binary @/path/to/file.ext
# 3) Call the tool, passing the returned storageKey for each file field
curl -X POST 'https://api.elysiatools.com/es/api/tools/subtitle-reading-speed-localization-auditor' \
-F 'subtitleText=1
00:00:00,000 --> 00:00:02,000
Welcome to the lesson
2
00:00:02,000 --> 00:00:03,000
This sentence is intentionally too fast.' \
-F 'subtitleFile=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
-F 'inputFormat=srt' \
-F 'preset=netflix-adult' \
-F 'maxCps=20' \
-F 'maxLineLength=42' \
-F 'maxLines=2' \
-F 'translationExpansionPercent=20'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/subtitle-reading-speed-localization-auditor| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| subtitleText | textarea | No | — |
| subtitleFile | filesubida requerida | No | — |
| inputFormat | select | No | — |
| preset | select | No | — |
| maxCps | number | No | — |
| maxLineLength | number | No | — |
| maxLines | number | No | — |
| translationExpansionPercent | number | No | — |
Resultado HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}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-subtitle-reading-speed-localization-auditor": {
"name": "subtitle-reading-speed-localization-auditor",
"description": "Audita subtítulos SRT, WebVTT y ASS por CPS, duración, longitud de línea, solapamientos y riesgo de expansión.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=subtitle-reading-speed-localization-auditor",
"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": "subtitle-reading-speed-localization-auditor",
"arguments": {
"subtitleText": "1\n00:00:00,000 --> 00:00:02,000\nWelcome to the lesson\n\n2\n00:00:02,000 --> 00:00:03,000\nThis sentence is intentionally too fast.",
"subtitleFile": "https://example.com/file.ext",
"inputFormat": "srt",
"preset": "netflix-adult",
"maxCps": 20,
"maxLineLength": 42,
"maxLines": 2,
"translationExpansionPercent": 20
}
}
}¿Dudas o problemas? Contacta con [email protected]