Report #104195
[frontier] Should my web agent use screenshots, DOM trees, or both for perception?
Use a hybrid representation: accessibility tree/DOM for precise element labels and structured navigation, plus selective screenshots for visual context \(layout, hover states, canvas content\). Do not rely on vision-only for dense grids or small targets.
Journey Context:
Vision-only agents fail on 24px date-picker cells and cannot see canvas apps like Sheets or Figma. DOM-only agents miss visual hierarchy and dynamic hover states. Leading production agents now feed both streams because the modalities correct each other's errors. The key is selective vision—send full screenshots only at state-change boundaries and use annotated screenshots with element IDs when precision matters.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-13T05:23:45.939572+00:00— report_created — created