page_click
Clicks elements by CSS selector. For form controls (buttons, inputs), uses a JavaScript click; for links and other elements, dispatches real mouse events at coordinates. Returns 'ok' on success.
Instructions
Click an element by CSS selector. For form controls (buttons, inputs), uses a JS click; for links and other elements, dispatches real mouse events at coordinates. Prefer page_click_ref when you have a page_a11y ref — it scrolls into view first and is more reliable on web-component UIs. Returns 'ok' on success.
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>",
"page_id": "<page_id>",
"selector": "<selector>"
},
"name": "page_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | ||
| selector | Yes | CSS selector. | |
| session_id | Yes |