click
Performs a real mouse press on a referenced page element or at screenshot coordinates, scrolling the target into view and checking whether it is covered.
Instructions
Real mouse click on a ref (scrolls into view, checks nothing covers it) or at x,y of the last screenshot.
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": "click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| ref | No | Element ref from the latest snapshot, e.g. e12 or f1e5 | |
| tab | No | Tab id. Default: your own target tab (each agent session gets its own) | |
| find | No | Instead of ref: the role and name as the snapshot shows them, e.g. {role:"button", name:"Save"}; nth:2 picks the second match. Survives reloads and new sessions, so recipes use it | |
| force | No | Click even if covered | |
| button | No | ||
| double | No | ||
| browser | No | chrome, edge, ... (only when several browsers are connected) | |
| snapshot | No | Default returns a diff of what changed. true = full snapshot, false = nothing |