Text Processing
diff de linha/palavra/caractere, regras de caixa/espaços, merge triple com conflitos, patch unificado e relatório
Chame esta ferramenta a partir do seu código em três idiomas.
curl -X POST 'https://api.elysiatools.com/pt/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}'Envie uma requisição POST com suas entradas em JSON. Parâmetros do tipo arquivo exigem upload prévio.
POST https://api.elysiatools.com/pt/api/tools/three-way-text-comparison-merge-suite| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| base | textarea | Não | — |
| branchA | textarea | Sim | — |
| branchB | textarea | Sim | — |
| mode | select | Não | — |
| granularity | select | Não | — |
| ignoreCase |
Adicione esta ferramenta ao seu servidor Model Context Protocol para que agentes de IA possam listá-la e chamá-la.
Adicione este bloco à configuração do seu cliente MCP:
{
"mcpServers": {
"elysiatools-three-way-text-comparison-merge-suite": {
"name": "three-way-text-comparison-merge-suite",
"description": "diff de linha/palavra/caractere, regras de caixa/espaços, merge triple com conflitos, patch unificado e relatório",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=three-way-text-comparison-merge-suite",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Após conectar ao endpoint SSE, liste as ferramentas expostas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoque a ferramenta pelo seu id; os argumentos são construídos a partir de seus parâmetros:
{
"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 |
| Não |
| — |
| ignoreWs | checkbox | Não | — |
| contextLines | number | Não | — |
Resultado HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Dúvidas ou problemas? Contate [email protected]