Text Processing
diff по строкам/словам/символам, правила регистра/пробелов, трёхстороннее слияние с конфликтами, unified-patch и отчёт
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/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}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/three-way-text-comparison-merge-suite| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| base | textarea | Нет | — |
| branchA | textarea | Да | — |
| branchB | textarea | Да | — |
| mode | select | Нет | — |
| granularity | select | Нет | — |
| ignoreCase |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-three-way-text-comparison-merge-suite": {
"name": "three-way-text-comparison-merge-suite",
"description": "diff по строкам/словам/символам, правила регистра/пробелов, трёхстороннее слияние с конфликтами, unified-patch и отчёт",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=three-way-text-comparison-merge-suite",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}После подключения к SSE-endpoint выведите список доступных инструментов:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Вызовите инструмент по его id; аргументы формируются из его параметров:
{
"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 |
| Нет |
| — |
| ignoreWs | checkbox | Нет | — |
| contextLines | number | Нет | — |
HTML-результат
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Вопросы или проблемы? Свяжитесь с [email protected]