safari_native_hover
Performs OS-level mouse hover to trigger native :hover and mouseenter events on elements that ignore JavaScript-dispatched hover, such as Discord tooltips. Dwells for rendering, then restores cursor.
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 |
|---|---|---|---|
| ref | No | Ref ID from safari_snapshot | |
| selector | No | CSS selector | |
| text | No | Visible text to find and hover | |
| x | No | Viewport X coordinate | |
| y | No | Viewport Y coordinate | |
| dwellMs | No | Milliseconds to dwell over the element so tooltips render (clamped 0-5000) | |
| restoreMouse | No | Restore cursor to original position after dwell |