hover_element
Simulate a realistic multi-step pointer path to an element so hover-triggered menus and hover-intent libraries actually open, then return the moves, change state, and optional screenshot or page map.
Instructions
Hover an element with a REALISTIC pointer path: the mouse travels to the element in several mousemove steps (default 8, plus a short warm-up move), the way menus that watch pointer motion (SmartMenus/Elementor mega-menus, hover-intent libraries) expect — a single synthetic hover often never opens them. Returns {moves, changed, change} plus the chosen observation. The interact_and_test 'hover' step uses the same path (steps field overrides).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"selector": "<selector>"
},
"name": "hover_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | Intermediate mousemove steps on the way to the element (default: 8) | |
| observe | No | What to return about the resulting page. 'screenshot' (default): full-page image. 'none': structured result only, no image — cheapest, use through setup steps of a flow. 'map': semantic page map (get_page_map — token-light, best for 'what can I do next?'). 'checks': run_checks_on_session output (a11y/seo/perf/etc.). | screenshot |
| selector | Yes | CSS selector of the element to hover | |
| session_id | Yes | Session ID |