audit_screen
Audit a mobile screen snapshot to score touch targets, contrast, and visual rhythm against platform standards for iOS or Android.
Instructions
Audit a rendered mobile screen (iOS or Android) from a view-hierarchy/accessibility snapshot. Call with no arguments for the expected snapshot shape and how to capture it. Pass platform:"android" to score against the 48dp Material touch minimum and Material muted roles (onSurfaceVariant/outline = warn not fail); default platform:"ios" scores 44pt and treats secondaryLabel/tertiaryLabel as platform-standard. Both score touch targets, contrast, and visual rhythm (alignment, gap consistency, optical balance). Same return shape as audit_page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | Taste profile owning the binding. Omit to search all stored profiles for one bound to the project. | |
| project | No | Project identifier — resolves a saved taste surface binding (see bind_taste_surface). When the binding carries design_notes and a screenshot is passed, the screenshot's pixels verify the color-scheme notes; results gain note_assessments. | |
| elements | No | Elements captured from the rendered screen via an accessibility/view-hierarchy snapshot | |
| platform | No | Target platform — 'ios' (default, 44pt minimum, iOS semantic colors) or 'android' (48dp minimum, Material semantic roles) | |
| viewport | No | Screen size in pt (iOS) or dp (Android) at capture time, e.g. {w:393,h:852} iPhone 15, {w:412,h:915} Pixel | |
| screenshot | No | Optional base64 PNG of the screen, for the caller's reference. Geometry is scored from the snapshot, not decoded pixels. | |
| scroll_settle | No |