Reference
device_batch
Execute a sequence of UI interactions in ONE tool call. Eliminates LLM round-trip overhead. Steps: find/press/fill (testID OR text/ref), scroll/swipe (direction), back, wait (ms), hideKeyboard, snapshot, screenshot. Pass testID on find/press/fill for fresh fiber-tree resolution per step (eliminates stale-ref-across-step-transitions failures from cached refs). Fails fast on error unless step has optional=true OR continueOnError is true at the batch level.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
steps | unknown | No | Ordered list of UI interaction steps | ||
delayMs | unknown | No | |||
screenshotOn | unknown | No | 'failure' | When to capture screenshots | |
continueOnError | unknown | No | false | ||
finalSnapshot | unknown | No | 'salient' |
device_batch()