safari_native_hover
Trigger native CSS :hover and mouseenter events by moving the real macOS cursor to an element, enabling tooltips in obfuscated UIs like Discord server sidebars. Dwells to allow tooltip rendering, then restores original cursor position.
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 |