pilot_click
Click any interactive element on a webpage using a reference from a snapshot or CSS selector. Supports left, right, or middle button clicks and double-clicks.
Instructions
Click an element on the page using a ref from pilot_snapshot or a CSS selector. Use when the user wants to press a button, follow a link, check a checkbox, or interact with any clickable element. Auto-routes clicks on elements to pilot_select_option.
Parameters:
ref: Element reference from snapshot (e.g., "@e3") or a CSS selector (e.g., "button.submit")
button: Mouse button to click — "left" (default), "right" (context menu), or "middle"
double_click: Set to true for a double-click instead of single click
Returns: Confirmation with the clicked ref and the current URL after navigation (if any).
Errors:
"Element not found": The ref is stale or the selector matches nothing. Run pilot_snapshot to get fresh refs.
"Element is not clickable": The element exists but is obscured or disabled. Try scrolling to it first with pilot_scroll.
"Timeout": The click triggered a navigation that took too long. The page may still be loading.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Element ref (@e3) or CSS selector | |
| button | No | Mouse button | |
| double_click | No | Double-click instead of single click |