Media
Subtitle Timing Transplant
Borrow the timings from a correctly synced subtitle and graft them onto a translation: cue-by-cue in strict order when counts match, or monotonic nearest-time assignment when they drift apart.
text· Text resultOpen tool
Quick start
Call this tool from your code in three languages.
cURL
curl -X POST 'https://api.elysiatools.com/en/api/tools/subtitle-timing-transplant' \
-H 'Content-Type: application/json' \
-d '{"timingText":"1\n00:00:02,000 --> 00:00:04,000\nHello there\n\n2\n00:00:05,000 --> 00:00:07,000\nHow are you?\n\n3\n00:00:09,000 --> 00:00:11,000\nSee you tomorrow","textText":"1\n00:00:00,100 --> 00:00:02,100\n你好\n\n2\n00:00:03,200 --> 00:00:05,200\n你好吗\n\n3\n00:00:10,500 --> 00:00:12,500\n明天见","matchMode":"order","outputFormat":"srt"}'API reference
Send a POST request with your inputs as JSON. File parameters require a separate upload first.
Endpoint
HTTP
POST https://api.elysiatools.com/en/api/tools/subtitle-timing-transplantParameters
| Name | Type | Required | Description |
|---|---|---|---|
| timingText | textarea | Yes | — |
| textText | textarea | Yes | — |
| matchMode | select | No | — |
| outputFormat | select | No | — |
Response format
Text result
JSON
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}MCP integration
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Server configuration
Add this block to your MCP client configuration:
mcp.json
{
"mcpServers": {
"elysiatools-subtitle-timing-transplant": {
"name": "subtitle-timing-transplant",
"description": "Borrow the timings from a correctly synced subtitle and graft them onto a translation: cue-by-cue in strict order when counts match, or monotonic nearest-time assignment when they drift apart.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=subtitle-timing-transplant",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}List available tools
After connecting to the SSE endpoint, list the exposed tools:
tools/list
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Call this tool
Invoke the tool by its id, passing arguments built from its parameters:
tools/call
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "subtitle-timing-transplant",
"arguments": {
"timingText": "1\n00:00:02,000 --> 00:00:04,000\nHello there\n\n2\n00:00:05,000 --> 00:00:07,000\nHow are you?\n\n3\n00:00:09,000 --> 00:00:11,000\nSee you tomorrow",
"textText": "1\n00:00:00,100 --> 00:00:02,100\n你好\n\n2\n00:00:03,200 --> 00:00:05,200\n你好吗\n\n3\n00:00:10,500 --> 00:00:12,500\n明天见",
"matchMode": "order",
"outputFormat": "srt"
}
}
}