Text Processing
Line/word/char diff with ignore rules, three-way merge with conflict markers, and unified patch
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/three-way-text-comparison-merge-suite' \
-H 'Content-Type: application/json' \
-d '{"base":"Line one\nLine two\nLine three\nLine four","branchA":"Line one\nLine TWO (ours)\nLine three\nLine four","branchB":"Line one\nLine two\nLine three\nLine FOUR (theirs)","mode":"threeway","granularity":"line","ignoreCase":false,"ignoreWs":false,"contextLines":3}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/three-way-text-comparison-merge-suite| Name | Type | Required | Description |
|---|---|---|---|
| base | textarea | No | — |
| branchA | textarea | Yes | — |
| branchB | textarea | Yes | — |
| mode | select | No | — |
| granularity | select | No | — |
| ignoreCase |
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-three-way-text-comparison-merge-suite": {
"name": "three-way-text-comparison-merge-suite",
"description": "Line/word/char diff with ignore rules, three-way merge with conflict markers, and unified patch",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=three-way-text-comparison-merge-suite",
"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": "three-way-text-comparison-merge-suite",
"arguments": {
"base": "Line one\nLine two\nLine three\nLine four",
"branchA": "Line one\nLine TWO (ours)\nLine three\nLine four",
"branchB": "Line one\nLine two\nLine three\nLine FOUR (theirs)",
"mode": "threeway",
"granularity": "line",
"ignoreCase": false,
"ignoreWs": false,
"contextLines": 3
}
}
}| checkbox |
| No |
| — |
| ignoreWs | checkbox | No | — |
| contextLines | number | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]