Generator
Génère des chaînes aléatoires avec des jeux de caractères, longueurs et motifs personnalisables
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/random-string-generator' \
-H 'Content-Type: application/json' \
-d '{"length":12,"quantity":1,"separator":"Separator between strings","includeUppercase":true,"includeLowercase":true,"includeNumbers":true,"includeSymbols":false,"customCharset":"Enter custom characters","excludeSimilar":false,"excludeAmbiguous":false}'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/random-string-generator| Nom | Type | Requis | Description |
|---|---|---|---|
| length | number | Oui | — |
| quantity | number | Non | — |
| separator | text | Non | — |
| includeUppercase | checkbox | Non | — |
| includeLowercase | checkbox | 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-random-string-generator": {
"name": "random-string-generator",
"description": "Génère des chaînes aléatoires avec des jeux de caractères, longueurs et motifs personnalisables",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=random-string-generator",
"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": "random-string-generator",
"arguments": {
"length": 12,
"quantity": 1,
"separator": "Separator between strings",
"includeUppercase": true,
"includeLowercase": true,
"includeNumbers": true,
"includeSymbols": false,
"customCharset": "Enter custom characters",
"excludeSimilar": false,
"excludeAmbiguous": false
}
}
}| includeNumbers |
| checkbox |
| Non |
| — |
| includeSymbols | checkbox | Non | — |
| customCharset | text | Non | — |
| excludeSimilar | checkbox | Non | — |
| excludeAmbiguous | checkbox | Non | — |
Résultat texte
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Des questions ou un problème ? Contactez [email protected]