Click an element
browser_clickClick a page element by snapshot ref or CSS selector in an open browser session, then return the resulting page state for verifying navigation or UI changes.
Instructions
Click an element, named by a ref from the latest browser_snapshot or by a CSS selector -- exactly one of the two. Returns where the page is afterwards.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>"
},
"name": "browser_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | A ref from the latest `browser_snapshot`: for `[ref=e14]`, 'e14'. This or `selector`. | |
| timeout | No | Seconds; unset, 30. | |
| selector | No | A CSS or Playwright selector. This or `ref`. | |
| session_id | Yes | The session_id `browser_open` returned. |