flow
Execute batch, run, or parallel automation on mobile devices. Supports multi-step sequences with loops, conditionals, and error handling.
Instructions
Flow orchestration: batch (multi-command), run (multi-step automation with loops/conditionals), parallel (same action on multiple devices). Use turbo:true for rich feedback (experimental).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| commands | No | Array of commands to execute sequentially | |
| stopOnError | No | Stop execution on first error (default: true) | |
| turbo | No | [experimental] Rich UI feedback per step. Compact UI tree after each step, screenshot on failure. | |
| steps | No | Steps to execute sequentially | |
| maxDuration | No | Max total duration in ms (default: 30000, max: 60000) | |
| platform | No | Target platform. If not specified, uses the active target. | |
| args | No | Arguments for the action (deviceId will be injected per device) | |
| devices | No | Array of device IDs to target. Use device(action:'list') to get available devices. |