agent-browser annotated screenshots via --annotate
Introduced 2026-02-19 · score 0.97
HOW TO USE IT
When inspecting a page’s visual layout, run `agent-browser screenshot --annotate` to label interactive elements and print their refs; use the resulting `@eN` refs for subsequent interactions.
agent-browser screenshot --annotate <output.png>agent-browser click @e2AGENT_BROWSER_ANNOTATE=1 agent-browser screenshot <output.png>WHY THIS HELPS
Inspect a page’s visual layout and identify interactive elements by their annotated references.
REQUIREMENTS AND LIMITATIONS
- Version: v0.12.0
- --annotate: Enables numbered labels on interactive elements and prints a legend mapping labels to refs.
- AGENT_BROWSER_ANNOTATE: Environment variable alternative for enabling annotated screenshots; the docs do not specify accepted values.
- @eN: Ref corresponding to numbered screenshot label [N]; usable for subsequent interactions.
FIRST-PARTY EVIDENCE
- https://github.com/vercel-labs/agent-browser/releases/tag/v0.12.0
- https://github.com/vercel-labs/agent-browser/blob/main/docs/src/app/changelog/page.mdx
- https://github.com/vercel-labs/agent-browser/blob/main/docs/src/app/snapshots/page.mdx
Check the installed version and the source before using it. Entry JSON