audit_layout
Evaluate visual rhythm by analyzing rendered page geometry. Get alignment, gap-rhythm, and optical-balance scores from element rects and viewport dimensions.
Instructions
Evaluate visual rhythm from a rendered page's geometry. Call with no arguments to get a DevTools snippet to paste into your page — it prints {elements, viewport} JSON. Call again with that JSON to get alignment, gap-rhythm, and optical-balance scores. This is the complement to audit_page for things only visible once rendered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elements | No | Array of element rects captured from the rendered page via the DevTools snippet | |
| viewport | No | Viewport dimensions {w,h} at capture time |