Text Processing
Insère rapidement des mots aléatoires à des positions aléatoires dans le texte
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/text-random-word-inserter' \
-H 'Content-Type: application/json' \
-d '{"textInput":"Enter text to add random words to...","wordCount":5,"wordType":"english","insertMode":"random","seed":0}'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/text-random-word-inserter| Nom | Type | Requis | Description |
|---|---|---|---|
| textInput | textarea | Oui | — |
| wordCount | number | Oui | — |
| wordType | select | Oui | — |
| insertMode | select | Oui | — |
| seed | number | Non | — |
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-text-random-word-inserter": {
"name": "text-random-word-inserter",
"description": "Insère rapidement des mots aléatoires à des positions aléatoires dans le texte",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=text-random-word-inserter",
"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": "text-random-word-inserter",
"arguments": {
"textInput": "Enter text to add random words to...",
"wordCount": 5,
"wordType": "english",
"insertMode": "random",
"seed": 0
}
}
}Des questions ou un problème ? Contactez [email protected]
Résultat texte
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}