agentest_run_flow
Run a series of UI actions (tap, type, swipe) and assertions (visibility, text) on an Android app, automatically stopping if a step fails.
Instructions
Execute a batch of UI actions and assertions. Stops on first failure.
TARGET ELEMENTS using refs from the last tree snapshot: { "action": "tap", "target": { "ref": "@b1" } } Or use traditional selectors (id/text/textContains/className/description/index) — both work.
DO NOT add "wait" or "wait_for_stable" steps — the server auto-waits after every action.
RESPONSE: includes screenFingerprint and screenChanged. If screenChanged is false and success is true, the UI is exactly where you left it — reuse your prior refs without re-snaphotting. The tree is only included when the screen actually changed or the flow failed.
ACTIONS: tap, tap_coordinates, type, clear_text, swipe, swipe_coordinates, long_press, long_press_coordinates, double_tap, double_tap_coordinates, press_key, scroll_to. ASSERTIONS: assert_visible, assert_not_visible, assert_text_equals, assert_text_contains.
SELECTORS: ref (fastest — from last snapshot), id (substring), text (exact), textContains (substring), className (short or full name), description (substring), index (0-based Nth match).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | Ordered list of actions and assertions to execute |