browser_snapshot
Capture an accessibility snapshot of a page, returning element refs for click/type actions. Re-snapshot after any DOM change or navigation to avoid stale refs.
Instructions
Capture accessibility snapshot of a page. Returns the page structure with element refs for interaction. Use instead of screenshots to find elements to click/type. IMPORTANT: refs go stale after any DOM change or navigation — always re-snapshot before clicking if the page may have changed. Supports targeting a specific tab via tabId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | Target tab ID (from browser_tabs list). Uses active tab if omitted. | |
| agentId | No | Agent identifier for parallel execution. Pass a unique ID (e.g. 'C1', 'J2') — the server automatically routes calls to this agent's dedicated tab (registered via browser_tabs action=new). |