Run a multi-step interaction sequence
run_interaction_sequenceRun a multi-step browser flow—clicks, typing, waits, and assertions—in one pass, then get a single screenshot and layout audit of the final state to verify the whole interaction sequence.
Instructions
Batch pipeline for multi-step flows such as forms and nested menus: navigates, optionally matches a viewport, then runs the steps in one fast loop and returns ONE screenshot plus ONE layout audit after the final step — far cheaper than chaining interact_and_audit. Steps mix gestures, waits, expect_* assertions and evaluate_script, so a single call can drive AND verify a flow. A failing gesture or wait aborts at its index with earlier steps applied; failed expect_* checks let the flow finish but mark the whole response a FAILURE.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute URL to open, e.g. http://localhost:5173. | |
| steps | Yes | Ordered steps run back-to-back (max 25), with a reflow pause between each. ONE screenshot + audit is returned after the last step, so a flow costs far less than one interact_and_audit per step. A failing gesture or wait aborts at its index, earlier steps stay applied; failed expect_* checks come back as a verdict. | |
| reload | No | Reload even if the URL is already open (default reuses it, so it can be stale after an edit). | |
| sizeMode | No | What goes over the wire: "full-res" (default), or "thumb" for a 480px webp. Disk always gets the full-resolution image. | full-res |
| viewport | No | Switch to this breakpoint first. Default: keep the current one. | |
| ignoreSelector | No | Selector(s) to exclude from the audit, string or array. Matches and their descendants are suppressed and counted — silences known noise like a cookie banner. |