browser_click
Click an element on a ready sandbox's page, by its ref from browser_snapshot, or a point (x and y, in CSS pixels in the viewport), with the mouse on its screen. When the click opens another page, it answers once that has loaded, with the page's URL and title.
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": {
"sandbox_id": "<sandbox_id>"
},
"name": "browser_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Or the point to click, in CSS pixels from the left of the viewport. | |
| y | No | And from the top of the viewport. | |
| ref | No | The element to click, by its ref in the page's latest snapshot. It's scrolled into view and clicked in its middle. | |
| button | No | `left`, `right` or `middle`; `left` when absent. | left |
| double | No | A double click. | |
| sandbox_id | Yes | The sandbox, `sbx_…`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The page's URL. | |
| title | Yes | The page's title. | |
| snapshot | No | The page's accessibility tree as an indented outline, one element a line: `- role "name" [ref=N]`. A ref names the element to click, type into or scroll to. |