audit_layout
Audit the current page or CSS section at a set viewport for horizontal overflow, text clipping, unconstrained media, fixed widths, and overlaps, with severity ratings to prioritize fixes.
Instructions
Perform a comprehensive layout audit on the current page to detect horizontal overflow, text clipping, unconstrained media, rigid fixed widths, and overlapping elements with severity ratings (Critical, High, Medium, Low).
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": "audit_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | Optional CSS selector to scope layout audit to a section. Default audits entire page. | |
| viewport_width | No | Optional viewport width in px to audit layout at (e.g. 375 for mobile). | |
| viewport_height | No | Optional viewport height in px to audit layout at (e.g. 812). |