interact
Perform double-click, right-click, hover, or real mouse move-and-click on elements to open context menus, show tooltips, and trigger pointer-only UI. Use when a plain click is not enough.
Instructions
Mouse actions beyond a plain click: double_click, right_click (opens a context menu), hover (reveals menus and tooltips), or click performed as a real mouse move-and-click. Waits for the element to be visible (hover) or visible and enabled (clicks). Target it by selector or by a ref from capture_page. For an ordinary click, prefer click.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from the latest capture_page result (e.g. 'e12'). Use instead of selector; refs go stale after navigation, so capture again if one is rejected. | |
| action | Yes | double_click | right_click | hover | click. 'click' moves the mouse onto the element first, which helps with elements that only react to real pointer movement. | |
| selector | No | How to find the element, e.g. { by: 'id', value: 'user-name' } or { by: 'css', value: '#login-button' }. Provide either selector or ref. | |
| timeoutMs | No | How long to wait for the element to become ready, in milliseconds (default 10000). |