Design
Génère de beaux motifs fractals incluant l'ensemble de Mandelbrot, l'ensemble de Julia et Burning Ship avec paramètres personnalisables
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/image-fractal-generator' \
-H 'Content-Type: application/json' \
-d '{"fractalType":"mandelbrot","width":800,"height":600,"maxIterations":100,"zoom":1,"centerX":-0.5,"centerY":0,"juliaC":"-0.7+0.27015i","colorScheme":"fire","quality":95}'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/image-fractal-generator| Nom | Type | Requis | Description |
|---|---|---|---|
| fractalType | select | Oui | — |
| width | number | Non | — |
| height | number | Non | — |
| maxIterations | number | Non | Des valeurs plus élevées = plus de détails mais plus lent |
| zoom | 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-image-fractal-generator": {
"name": "image-fractal-generator",
"description": "Génère de beaux motifs fractals incluant l'ensemble de Mandelbrot, l'ensemble de Julia et Burning Ship avec paramètres personnalisables",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-fractal-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": "image-fractal-generator",
"arguments": {
"fractalType": "mandelbrot",
"width": 800,
"height": 600,
"maxIterations": 100,
"zoom": 1,
"centerX": -0.5,
"centerY": 0,
"juliaC": "-0.7+0.27015i",
"colorScheme": "fire",
"quality": 95
}
}
}| centerX |
| number |
| Non |
| — |
| centerY | number | Non | — |
| juliaC | text | Non | Nombre complexe pour l'ensemble de Julia (format: a+bi) |
| colorScheme | select | Non | — |
| quality | number | Non | — |
Résultat fichier
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Des questions ou un problème ? Contactez [email protected]