Run flow
run_flowRun a sequence of UI steps server-side in one call to cut round trips. It executes taps, typing, swipes and assertions, aborts on first failure, and returns a snapshot at the stop point.
Instructions
Run a sequence of UI steps server-side in one call (tap/type/swipe/wait_for/expect/expect_not/eval). Set via:'js' to dispatch taps and typing through the app's fiber tree instead of paying a simulator touch per step; each step's report line names the path it used. Aborts on the first failure or app error, and returns an observe snapshot at the stop point. Prefer this over many separate tap/observe calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| via | No | Default input path for every tap/type step: js dispatches the press through the app's own fiber tree (~1ms), os delivers a real simulator touch (17-25s against a hot iOS app), auto tries js and falls back naming the reason. A step's own `via` wins. Default auto. | |
| steps | Yes | Array of step objects, one action each, e.g. [{tap:{text:'Login'}},{expect:{text:'Home'}}] | |
| device | No | ||
| observe | No | Trailing snapshot: auto (default) = screenshot always, full layout only if the flow failed; full = both; none = neither. |