interact_with_element
Perform clicks, typing, hover, and other user actions on live DOM elements, then get before/after state and effect measurements to diagnose UI issues.
Instructions
Perform an interaction (click, double_click, right_click, hover, focus, blur, type, clear, press_key, select_option, scroll_into_view, scroll) on a live element and return before/after state and effect measurements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Key name for press_key action (e.g. Enter, Escape, Tab, ArrowDown) | |
| text | No | Text string for type action | |
| action | Yes | The user action to perform | |
| nodeId | No | LogicalNodeId of the target element | |
| selector | No | CSS selector of the target element | |
| optionValue | No | Value or label for select_option action | |
| scrollDelta | No | Scroll deltas for scroll action | |
| selectedElementRef | No | Selected element reference token | |
| waitForStabilization | No | Wait for DOM and network stabilization after interaction (default: true) | |
| stabilizationTimeoutMs | No | Max wait time in milliseconds (default: 300ms) |