analyze_page_structure
Extract a page's section band map—tag, label, background color, offset and height per band—from live URLs or file:// paths to compare a reference site's structure with your local build.
Instructions
Extract a page's section band map (tag, label, background color, offset, height per band) via a headless browser. Works on live URLs and file:// paths — use it to compare a reference site's structure against your local build.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute URL (https:// or file://) of the page to analyze | |
| maxBands | No | Cap on returned bands | |
| viewport | No | desktop = 1440x900 (default); mobile = 390x844 iPhone-class with deviceScaleFactor 3, isMobile + hasTouch | desktop |
| waitStrategy | No | 'load' + settle works on heavy sites; 'networkidle' waits for total quiet | load |