record_interaction
Perform a click or hover to get a time-ordered causal timeline of handler code, DOM mutations, animations, and console errors for debugging interaction issues.
Instructions
Perform one interaction (click or hover, or watch while the human interacts) and return a source-attributed causal TIMELINE — handler file:line, DOM/class mutations, animations started/cancelled, layout shifts, console errors — uid-keyed and time-ordered. Use for cause-and-effect over time: "the sidebar does not hide smoothly", "nothing/the wrong thing happens when I click", "the menu closes immediately", a modal that won't open, focus that jumps. For static listener attribution without triggering it, use get_listeners; for animation rules at rest, use explain_animations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Viewport x coordinate (use with y) | |
| y | No | Viewport y coordinate (use with x) | |
| uid | No | Element uid from a prior page_snapshot (e.g. "e5") | |
| action | No | click/hover dispatch real input at the target; manual just records while a human interacts in the (headed) tab | |
| waitMs | No | Observation window after the action; default 1500, clamped 200–10000 | |
| selector | No | CSS selector — first match is used | |
| maxEvents | No | Hard cap on timeline lines; default 40 |