click_at
Simulate a real mouse click at viewport coordinates (x, y). Use for elements without stable CSS selectors: canvas drawings, interactive maps, or SVG regions. Returns post-action page state.
Instructions
Click at specific viewport coordinates (x, y) using a real mouse event. Use exclusively for elements without stable CSS selectors: canvas drawings, interactive maps, SVG regions, or coordinate-based UIs. Returns post-action page_state. Prefer the selector-based 'click' tool for normal DOM elements — it is more reliable and does not require coordinate calculation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate in viewport pixels (0 = left edge). Obtain via execute_js with getBoundingClientRect() on the target element. | |
| y | Yes | Y coordinate in viewport pixels (0 = top edge). Obtain via execute_js with getBoundingClientRect() on the target element. | |
| widen | No | When true, return the full-page diff instead of scoping to the interacted container. Default: false. |