Click in browser
browser_clickClick an element by index from a browser snapshot or at given x/y coordinates in an agent tab. Use for background tabs; snapshot first because clicks can submit forms or open links.
Instructions
Click in one of the agent's tabs, either an element by its index from browser_snapshot (preferred) or a point given in page coordinates. Pass index or x and y, not both. Works on a background tab. Use click for native app windows. A click can submit forms or follow links, so snapshot first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Page x coordinate in CSS pixels, used together with y when no index is given | |
| y | No | Page y coordinate in CSS pixels, used together with x when no index is given | |
| index | No | Element index from the latest browser_snapshot of this tab. Preferred over coordinates. | |
| tab_id | Yes | tab_id of one of the agent's tabs, from browser_open_tab or browser_list_tabs | |
| session_id | No | Stable task or thread ID. Pass the same value on every browser call for this task. Different IDs isolate tabs and cleanup within one MCP process. Omit for the default process session. | |
| return_state | No | After acting, wait for the page to settle (and finish loading, if the action navigated) and append a fresh browser_snapshot of this tab, so you can pick the next index in the same call. Its indices replace earlier ones. |