Text Processing
Surligneur de Texte
Met en évidence des mots, phrases ou motifs spécifiques dans le texte avec un formatage personnalisé
text· Résultat texteOuvrir l'outil
Démarrage rapide
Appelez cet outil depuis votre code en trois langages.
cURL
curl -X POST 'https://api.elysiatools.com/fr/api/tools/text-highlighter' \
-H 'Content-Type: application/json' \
-d '{"textInput":"Enter text to highlight...","highlightTerms":"Enter words or patterns to highlight","highlightType":"words","highlightFormat":"bold","outputFormat":"plain","caseSensitive":false,"wholeWord":false}'Référence de l'API
Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
Point d'accès
HTTP
POST https://api.elysiatools.com/fr/api/tools/text-highlighterParamètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| textInput | textarea | Oui | — |
| highlightTerms | text | Oui | — |
| highlightType | select | Oui | — |
| highlightFormat | select | Oui | — |
| outputFormat | select | Oui | — |
Intégration MCP
Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Configuration du serveur
Ajoutez ce bloc à la configuration de votre client MCP :
mcp.json
{
"mcpServers": {
"elysiatools-text-highlighter": {
"name": "text-highlighter",
"description": "Met en évidence des mots, phrases ou motifs spécifiques dans le texte avec un formatage personnalisé",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=text-highlighter",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Lister les outils disponibles
Après connexion au point d'accès SSE, listez les outils exposés :
tools/list
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appeler cet outil
Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
tools/call
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "text-highlighter",
"arguments": {
"textInput": "Enter text to highlight...",
"highlightTerms": "Enter words or patterns to highlight",
"highlightType": "words",
"highlightFormat": "bold",
"outputFormat": "plain",
"caseSensitive": false,
"wholeWord": false
}
}
}Chaînez plusieurs outils dans une session avec une liste toolId séparée par des virgules, ex. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (20 max).