Design
Measure WCAG contrast, simulate major color-vision deficiencies, and optionally flag low-contrast regions in a UI screenshot
Call this tool from your code in three languages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/color-vision-accessibility-checker' \
-F 'file=@/path/to/designImage.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/en/api/tools/color-vision-accessibility-checker' \
-F 'foreground=#1f2937' \
-F 'background=#ffffff' \
-F 'designImage=/path/to/file.ext' \
-F 'wcagLevel=AA'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/color-vision-accessibility-checker| Name | Type | Required | Description |
|---|---|---|---|
| foreground | color | Yes | — |
| background | color | Yes | — |
| designImage | fileupload required | No | — |
| wcagLevel | select | No | — |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-color-vision-accessibility-checker": {
"name": "color-vision-accessibility-checker",
"description": "Measure WCAG contrast, simulate major color-vision deficiencies, and optionally flag low-contrast regions in a UI screenshot",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=color-vision-accessibility-checker",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "color-vision-accessibility-checker",
"arguments": {
"foreground": "#1f2937",
"background": "#ffffff",
"designImage": "https://example.com/file.ext",
"wcagLevel": "AA"
}
}
}HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]