Opening & Closing
The panel toggles from the workspace toolbar. When it opens it animates in over your editor area; when it closes the agent loses access to the page but its captures stay in the run context.
The panel auto-closes when you navigate to the Plugins or Settings routes — those screens take over the full viewport.
Where It’s Available
Use it whenever an agent task touches a web app — staging dashboards, design tools, vendor portals, etc.
Navigation Controls
The toolbar exposes the controls you’d expect:
The renderer tracks
did-navigate and did-navigate-in-page events, so the URL and title in the toolbar stay live even when single-page apps update history without a full reload.
Select Mode
Select Mode is the headline feature — it lets you click any element on the page and capture both the element and its surroundings as agent context.1
Toggle Select Mode
Click the Crop icon in the panel toolbar. The cursor changes to a crosshair and elements highlight as you hover.
2
Click an element
Mains captures the element’s bounding box, computes a robust CSS selector, takes a tight screenshot, and also captures the surrounding region for visual context.
3
Selection lands in your prompt
A new ContextBrowserSelection chip appears in the workspace input. The agent receives both screenshots plus the selector when you send the next message.
Captures are stored under the user data dir in
browser-captures/. Mains keeps the directory below a byte budget using LRU eviction, so old captures get pruned automatically as new ones arrive.
What the Agent Sees
When you submit a message that includes a browser selection, the agent receives the two screenshots and the selector as part of the prompt. This is enough to reason about the element (“the button labeled ‘Export’ inside the report card”), draft DOM-aware code, or generate a Playwright/cypress selector. The panel itself isn’t an agent tool — you control navigation. Codex’s Computer Use plugin is the right pick if you want the agent to drive a browser autonomously.Troubleshooting
The browser panel is a navigation tool for you, not a sandbox for the agent. Pages opened here use a shared Mains profile — they can read cookies you set during browsing, but they cannot reach into the agent’s filesystem or workspace.
