measure_interaction
Measure elapsed time from clicking an element until a result settles. Supports timing until a network response completes, a specific element appears, or network-idle.
Instructions
Click an element and measure how long until the result settles. Returns elapsed_ms, a 'measures' note stating exactly what was timed, and the click's real interaction_to_next_paint_ms when measurable. Three modes: wait_for_network (URL substring) measures until that response completes — use this for buttons whose handler fires a request asynchronously, where plain network-idle settles early and under-measures; wait_for (selector) measures until it appears; default measures to the first network-idle window.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector of element to click | |
| wait_for | No | CSS selector to wait for (optional) | |
| session_id | Yes | Session ID | |
| wait_for_network | No | URL substring — measure until the matching response completes (armed before the click, so fast responses aren't missed). Plain substring, not a regex. Prefer this for async submit/save buttons. |