agent-browser supports cross-origin iframe snapshots and interactions
Introduced 2026-03-23 · score 0.95
HOW TO USE IT
When the target content is inside a cross-origin iframe, switch into that frame, then take a snapshot and interact with its elements. In v0.22.0, agent-browser supports this through `Target.setAutoAttach` automatically.
agent-browser frame <iframe-selector>
agent-browser snapshot
agent-browser click <element-selector-or-ref>WHY THIS HELPS
Inspect or interact with content inside a cross-origin iframe in a browser session.
REQUIREMENTS AND LIMITATIONS
- Version: v0.22.0
- <iframe-selector> (required): Selector for the iframe to switch into; `main` switches back to the main frame.
- <element-selector-or-ref> (required): Element selector or snapshot ref passed to `click`.
- Target.setAutoAttach: The v0.22.0 release says cross-origin iframe snapshot and interaction support is provided via this mechanism; no user-supplied parameters are documented for the CLI task.
- Prerequisite: Install agent-browser and download Chrome with `agent-browser install` before first use.
FIRST-PARTY EVIDENCE
- https://github.com/vercel-labs/agent-browser/releases/tag/v0.22.0
- https://github.com/vercel-labs/agent-browser/blob/v0.22.0/README.md
Check the installed version and the source before using it. Entry JSON