Media
Bearbeitet Zeitcodes, verschiebt Cues, repariert Überlappungen, kalibriert CPS und exportiert SRT, VTT, ASS oder TTML.
Rufen Sie dieses Werkzeug aus Ihrem Code in drei Sprachen auf.
curl -X POST 'https://api.elysiatools.com/de/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}'Senden Sie eine POST-Anfrage mit Ihren Eingaben als JSON. Dateiparameter erfordern einen vorherigen Upload.
POST https://api.elysiatools.com/de/api/tools/srt-vtt-subtitle-editor| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| subtitleText | textarea | Ja | — |
| inputFormat | select | Nein | — |
| outputFormat | select | Nein | — |
| shiftMilliseconds | number | Nein | — |
| repairMode | select | Nein | — |
Fügen Sie dieses Werkzeug Ihrem Model-Context-Protocol-Server hinzu, damit KI-Agenten es auflisten und aufrufen können.
Fügen Sie diesen Block Ihrer MCP-Client-Konfiguration hinzu:
{
"mcpServers": {
"elysiatools-srt-vtt-subtitle-editor": {
"name": "srt-vtt-subtitle-editor",
"description": "Bearbeitet Zeitcodes, verschiebt Cues, repariert Überlappungen, kalibriert CPS und exportiert SRT, VTT, ASS oder TTML.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=srt-vtt-subtitle-editor",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Nach dem Verbinden mit dem SSE-Endpunkt listen Sie die bereitgestellten Werkzeuge auf:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Rufen Sie das Werkzeug über seine ID auf; Argumente werden aus seiner Parameterliste gebildet:
{
"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 |
| Nein |
| — |
| targetCps | number | Nein | — |
| maxLineLength | number | Nein | — |
HTML-Ergebnis
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Fragen oder Probleme? Kontakt: [email protected]