click
Activates a page element by snapshot reference or visible text to perform UI actions, holding risky submissions for user approval and handling browser dialogs.
Instructions
Click an element: ref from the latest snapshot (e.g. "e12"), or its visible text
(e.g. "Messages"), which keeps working when the page layout changes.
confirmed: set to true only after the user approved this exact action. Buttons that send, post, buy, delete, connect, etc. are paused until then. accept_dialog: if the click opens an "Are you sure?" browser box, press OK instead of Cancel. dialog_text: if the click opens a browser box that asks for text (a prompt), type this and press OK.
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": "click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| text | No | ||
| confirmed | No | ||
| session_id | Yes | ||
| dialog_text | No | ||
| accept_dialog | No |