Media
Merge two single-language subtitle files (SRT or WebVTT) into one bilingual track — primary language on top, secondary below — aligning cues by time overlap or cue index.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/bilingual-subtitle-merger' \
-H 'Content-Type: application/json' \
-d '{"primaryText":"1\n00:00:01,000 --> 00:00:03,000\n你好,世界\n\n2\n00:00:04,000 --> 00:00:06,000\n今天天气很好\n\n3\n00:00:08,000 --> 00:00:10,000\n再见","secondaryText":"1\n00:00:01,100 --> 00:00:03,100\nHello, world\n\n2\n00:00:04,000 --> 00:00:06,200\nThe weather is nice today\n\n3\n00:00:08,200 --> 00:00:10,000\nGoodbye","alignmentMode":"overlap","timingSource":"primary","maxGapMs":500,"outputFormat":"srt"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/bilingual-subtitle-merger| Name | Type | Required | Description |
|---|---|---|---|
| primaryText | textarea | Yes | — |
| secondaryText | textarea | Yes | — |
| alignmentMode | select | No | — |
| timingSource | select | No | — |
| maxGapMs | number | No | — |
| outputFormat |
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-bilingual-subtitle-merger": {
"name": "bilingual-subtitle-merger",
"description": "Merge two single-language subtitle files (SRT or WebVTT) into one bilingual track — primary language on top, secondary below — aligning cues by time overlap or cue index.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=bilingual-subtitle-merger",
"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": "bilingual-subtitle-merger",
"arguments": {
"primaryText": "1\n00:00:01,000 --> 00:00:03,000\n你好,世界\n\n2\n00:00:04,000 --> 00:00:06,000\n今天天气很好\n\n3\n00:00:08,000 --> 00:00:10,000\n再见",
"secondaryText": "1\n00:00:01,100 --> 00:00:03,100\nHello, world\n\n2\n00:00:04,000 --> 00:00:06,200\nThe weather is nice today\n\n3\n00:00:08,200 --> 00:00:10,000\nGoodbye",
"alignmentMode": "overlap",
"timingSource": "primary",
"maxGapMs": 500,
"outputFormat": "srt"
}
}
}| select |
| No |
| — |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]