Text Processing
diff ligne/mot/caractère, règles casse/espaces, fusion triple avec conflits, patch unifié et rapport
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/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}'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/three-way-text-comparison-merge-suite| Nom | Type | Requis | Description |
|---|---|---|---|
| base | textarea | Non | — |
| branchA | textarea | Oui | — |
| branchB | textarea | Oui | — |
| mode | select | Non | — |
| granularity | select | Non | — |
| ignoreCase |
Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-three-way-text-comparison-merge-suite": {
"name": "three-way-text-comparison-merge-suite",
"description": "diff ligne/mot/caractère, règles casse/espaces, fusion triple avec conflits, patch unifié et rapport",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=three-way-text-comparison-merge-suite",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"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 |
| Non |
| — |
| ignoreWs | checkbox | Non | — |
| contextLines | number | Non | — |
Résultat HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Des questions ou un problème ? Contactez [email protected]