Context efficiency
Screenshots are expensive. Each one is 100KB+ of image tokens the model must process.
Playwriter's accessibility snapshots are 5-20KB of text that contain every interactive
element with ready-to-use locators. The agent can parse them without vision, which is
faster and cheaper.
When spatial layout matters (dashboards, image galleries), Playwriter offers
screenshotWithAccessibilityLabels which overlays Vimium-style ref labels on interactive
elements. You get visual context with actionable references in one call.