Data Visualization
Génère un organigramme vertical avec noms et postes à partir de données JSON hiérarchiques
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/org-chart-maker' \
-H 'Content-Type: application/json' \
-d '{"orgData":"{\n \"name\": \"Alex Rivera\",\n \"title\": \"CEO\",\n \"children\": [\n {\n \"name\": \"Sam Lee\",\n \"title\": \"VP Engineering\",\n \"children\": [\n { \"name\": \"Jordan Park\", \"title\": \"Eng Lead\" }\n ]\n },\n { \"name\": \"Morgan Chen\", \"title\": \"VP Sales\" }\n ]\n}","chartTitle":"Leadership","colorScheme":"default","showTitles":true,"boxStyle":"solid"}'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/org-chart-maker| Nom | Type | Requis | Description |
|---|---|---|---|
| orgData | textarea | Oui | JSON hierarchy: each node has a name, optional title, and optional children array |
| chartTitle | text | Non | — |
| colorScheme | select | Oui | — |
| showTitles | checkbox | Non | — |
| boxStyle | select | Oui | — |
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-org-chart-maker": {
"name": "org-chart-maker",
"description": "Génère un organigramme vertical avec noms et postes à partir de données JSON hiérarchiques",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=org-chart-maker",
"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": "org-chart-maker",
"arguments": {
"orgData": "{\n \"name\": \"Alex Rivera\",\n \"title\": \"CEO\",\n \"children\": [\n {\n \"name\": \"Sam Lee\",\n \"title\": \"VP Engineering\",\n \"children\": [\n { \"name\": \"Jordan Park\", \"title\": \"Eng Lead\" }\n ]\n },\n { \"name\": \"Morgan Chen\", \"title\": \"VP Sales\" }\n ]\n}",
"chartTitle": "Leadership",
"colorScheme": "default",
"showTitles": true,
"boxStyle": "solid"
}
}
}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]