Development
Audite du HTML ou une URL pour detecter des problemes WCAG courants et exporte un PDF structure
Appelez cet outil depuis votre code en trois langages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/accessibility-audit-report-generator' \
-F 'file=@/path/to/htmlFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/fr/api/tools/accessibility-audit-report-generator' \
-F 'urlInput=https://example.com' \
-F 'htmlInput=<!doctype html><html><head><title></title></head><body><img src="hero.jpg"><a href="#"></a><input type="text"></body></html>' \
-F 'htmlFile=/path/to/file.ext' \
-F 'targetLevel=AA' \
-F 'includePmSummary=true' \
-F 'reportTitle=Landing Page Accessibility Audit'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/accessibility-audit-report-generator| Nom | Type | Requis | Description |
|---|---|---|---|
| urlInput | text | Non | — |
| htmlInput | textarea | Non | — |
| htmlFile | fileupload requis | Non | — |
| targetLevel | select | Non | — |
| includePmSummary | checkbox | Non | — |
| reportTitle | text | 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)"
}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-accessibility-audit-report-generator": {
"name": "accessibility-audit-report-generator",
"description": "Audite du HTML ou une URL pour detecter des problemes WCAG courants et exporte un PDF structure",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=accessibility-audit-report-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": "accessibility-audit-report-generator",
"arguments": {
"urlInput": "https://example.com",
"htmlInput": "<!doctype html><html><head><title></title></head><body><img src=\"hero.jpg\"><a href=\"#\"></a><input type=\"text\"></body></html>",
"htmlFile": "https://example.com/file.ext",
"targetLevel": "AA",
"includePmSummary": true,
"reportTitle": "Landing Page Accessibility Audit"
}
}
}Des questions ou un problème ? Contactez [email protected]