多视口矩阵
browser_viewport_matrixCapture a page across multiple viewport sizes and DPI scales in one call to review responsive layouts, with PNG pixel sizes and horizontal overflow reported.
Instructions
Capture the same page at multiple viewport sizes and DPI scales in one call — use it for responsive-design review. Uses CDP device-metrics emulation, so it can render real 320/480/768px viewports and 2x high-DPI even though the BrowserWindow itself has a 960×640 minimum; the override is always cleared afterwards. Each entry reports actual PNG pixels and horizontal overflow. preset defaults to all; pass viewports to define exact sizes. Screenshots are saved under ~/.aabrowser/screenshots/.
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": "browser_viewport_matrix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | Tab id (default: active tab) | |
| preset | No | Viewport preset (default all) | |
| viewports | No | Explicit viewport list; overrides preset. Max 12 entries. | |
| includeImages | No | Attach up to 4 screenshots as image blocks in the result (default false) |