compare_viewports
Capture mobile, tablet, and desktop screenshots to detect layout shifts and compare pixel differences across responsive views.
Instructions
Capture screenshots of a webpage across mobile (375px), tablet (768px), and desktop (1440px) viewports, identify structural layout shifts, and compute visual pixel diff analysis.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "compare_viewports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to compare. Defaults to currently opened page. | |
| viewports | No | Optional custom viewports to compare. | |
| run_pixel_diff | No | Generate visual pixel difference images (default: true). |