safari_native_hover
Triggers native CSS :hover and mouseenter by moving the real cursor to coordinates or elements. Use for tooltips that only appear on genuine hover, then read the tooltip with evaluate or wait.
Instructions
OS-level mouse hover via macOS CGEvent — moves the real cursor to an element to trigger native :hover / mouseenter handlers. Use for obfuscated UIs where JS-dispatched mouseenter isn't enough, like Discord server sidebars (tooltips only appear on real hover) or portal-rendered tooltips. After hover, call safari_wait_for or safari_evaluate to read the tooltip. Dwells for dwellMs to let tooltips render, then restores the original cursor position by default. Requires Safari window to be visible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Viewport X coordinate | |
| y | No | Viewport Y coordinate | |
| ref | No | Ref ID from safari_snapshot | |
| text | No | Visible text to find and hover | |
| dwellMs | No | Milliseconds to dwell over the element so tooltips render (clamped 0-5000) | |
| selector | No | CSS selector | |
| restoreMouse | No | Restore cursor to original position after dwell |