page.click
Clicks an element after scrolling it into view and reports observed DOM changes to confirm the app handled the interaction.
Instructions
Click an element, scrolling it into view first. By default watches for a DOM reaction and reports observed_change, so "the input was dispatched" is not mistaken for "the app handled it".
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": "page.click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | With y and no locator: click this viewport point in CSS px (the `at.css` units every click reports). For controls no locator can reach. | |
| y | No | With x: viewport point in CSS px. | |
| nth | No | Zero-based index when the locator matches several elements. | |
| ref | No | Snapshot ref (eNN) from page.snapshot. | |
| text | No | Visible text of the element. | |
| xpath | No | XPath expression. | |
| button | No | ||
| verify | No | Watch for DOM mutations after the click. Default true. | |
| frame_id | No | Frame to search within; see page.list_frames. | |
| selector | No | CSS selector; pierces shadow DOM. | |
| modifiers | No | e.g. ["Control", "Shift"]. | |
| target_id | No | Target handle (tgt_*). Omit for the active page. | |
| verify_ms | No | How long to watch. Default 300. | |
| browser_id | No | Browser handle (br_*). Omit to use the only running browser, or auto-launch one. | |
| click_count | No | ||
| backend_node_id | No | CDP backendNodeId, e.g. from inspector.pick. | |
| retry_if_unchanged | No | If nothing changed, retry through the element own .click(), which reaches framework handlers synthetic input can miss. |