browser_click
Clicks elements with real mouse events, scrolling them into view first and reporting navigation or new tabs. Use refs, selectors, or viewport coordinates; covered targets fail with an explanation.
Instructions
Click an element with a real mouse event (scrolls it into view first). Target by ref (from browser_snapshot), selector, or x/y viewport coordinates. Reports navigation and any new tabs the click opened. Fails with an explanation if another element (e.g. a modal) covers the target.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| ref | No | Element ref from browser_snapshot, e.g. "e12". Preferred over selector. | |
| force | No | Click via element.click() even if covered/hidden. | |
| tabId | No | Tab to act on. Defaults to the tab last opened/selected by an agent, else the active tab. | |
| button | No | ||
| selector | No | CSS selector, "text=Sign in" (visible text), or "xpath=//button". Searches open shadow roots too. | |
| doubleClick | No |