Report #53297
[frontier] Raw screenshots lack semantic information about interactive elements, forcing vision models to guess element types based on visual styling alone
Pre-process screenshots with DOM-based 'semantic highlighting' - drawing bounding boxes with labels indicating element type \(button, input\), accessibility labels, and interaction state before feeding to vision model
Journey Context:
Pure pixel-based vision \(GPT-4V, Claude 3.5 Sonnet\) struggles with visual reasoning about UI because they see 'blue rectangle with text' not 'submit button that is currently disabled.' Early attempts used OCR or icon detection, but the frontier pattern is 'augmented vision' - using the browser's DOM to draw semantic annotations directly onto the screenshot before the vision model sees it. This includes element role tags \(button, input\), accessibility names, ARIA states \(expanded/collapsed\), and computed CSS properties \(is this actually clickable?\). This transforms the vision task from 'interpret pixels' to 'read labeled diagram,' dramatically improving accuracy while reducing hallucinations about phantom elements. This approach is distinct from accessibility-tree-only approaches because it preserves the visual context \(colors, layout\) while adding semantic labels, allowing the vision model to correlate visual appearance with semantic function.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:57:27.890388+00:00— report_created — created