page.audit_layout
Measures pages at multiple viewport widths to detect horizontal overflow, touch targets below minimum size, and clipped text, clarifying responsive layout issues screenshots cannot reveal.
Instructions
Measure a page at several viewport widths and report what is actually broken: horizontal overflow (outermost offender only), touch targets under the minimum size, and clipped text. Answers responsive questions that a screenshot leaves to guesswork. Viewport emulation is always cleared afterwards.
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": "page.audit_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | No | Audit these URLs in turn. Omit to audit the current page. | |
| height | No | Viewport height for every width. Default 800. | |
| widths | No | CSS widths to test. Default [320, 414, 768, 1280]. | |
| target_id | No | Target handle (tgt_*). Omit for the active page. | |
| browser_id | No | Browser handle (br_*). Omit to use the only running browser, or auto-launch one. | |
| min_touch_target | No | Smallest acceptable interactive dimension in CSS px. Default 24. | |
| device_scale_factor | No |