Development
Render a URL at multiple viewport widths and inspect screenshots, pixel-difference heatmaps, and layout metrics in the page.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/responsive-breakpoint-diff' \
-H 'Content-Type: application/json' \
-d '{"url":"data:text/html,<!doctype html><style>body{margin:0;font-family:sans-serif}.grid{display:flex;gap:12px;padding:20px}.card{width:180px;height:90px;background:tomato}@media(max-width:500px){.grid{display:block}.card{width:100%;margin-bottom:12px;background:teal}}</style><main class=grid><div class=card>One</div><div class=card>Two</div></main>","viewportWidths":"375,768","viewportHeight":320,"waitMilliseconds":0,"comparisonMode":"adjacent"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/responsive-breakpoint-diff| Name | Type | Required | Description |
|---|---|---|---|
| url | text | Yes | — |
| viewportWidths | text | Yes | — |
| viewportHeight | number | No | — |
| waitMilliseconds | number | No | — |
| comparisonMode | select | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}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-responsive-breakpoint-diff": {
"name": "responsive-breakpoint-diff",
"description": "Render a URL at multiple viewport widths and inspect screenshots, pixel-difference heatmaps, and layout metrics in the page.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=responsive-breakpoint-diff",
"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": "responsive-breakpoint-diff",
"arguments": {
"url": "data:text/html,<!doctype html><style>body{margin:0;font-family:sans-serif}.grid{display:flex;gap:12px;padding:20px}.card{width:180px;height:90px;background:tomato}@media(max-width:500px){.grid{display:block}.card{width:100%;margin-bottom:12px;background:teal}}</style><main class=grid><div class=card>One</div><div class=card>Two</div></main>",
"viewportWidths": "375,768",
"viewportHeight": 320,
"waitMilliseconds": 0,
"comparisonMode": "adjacent"
}
}
}Questions or issues? Contact [email protected]