Measure every page for sideways scroll
check_responsiveTests pages at multiple viewport widths in a real browser, flags horizontal overflow, and names the elements that cross the viewport edge.
Instructions
Loads each page in a real headless Chromium at a set of widths and asserts that document.documentElement.scrollWidth does not exceed window.innerWidth. Reports the actual numbers at every width, pass or fail, and names the specific elements whose edge crosses the line.
Requires Playwright, which is NOT installed with this kit. If it is missing this tool returns status "skipped" with the one command that installs it. It never reports a pass it did not measure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | Specific .html files to test, relative to the site folder. Default: every .html file found. | |
| height | No | Viewport height. Default 900. | |
| ignore | No | Folder or file names to skip. Defaults cover node_modules, .git, dist, build and friends. | |
| widths | No | Viewport widths in CSS pixels. Default: 320, 390, 768, 1024, 1280, 1440 | |
| directory | Yes | Full path to the site folder, for example /Users/brian/Sites/chess-lessons. | |
| timeout_ms | No | Per-page load timeout. Default 20000. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No | ||
| why | No | ||
| tool | Yes | Which tool produced this. | |
| status | Yes | pass = checked and clean. fail = checked and found problems. skipped = nothing was measured. error = the tool could not run. | |
| widths | No | ||
| problem | No | ||
| headline | Yes | One sentence verdict, safe to show a non-technical user. | |
| directory | No | ||
| error_code | No | Set only when status is "error". | |
| page_errors | No | ||
| browser_from | No | ||
| measurements | No | ||
| pages_tested | No | ||
| overflow_count | No | ||
| install_command | No | ||
| browser_available | No | ||
| measurements_taken | No |