Skip to content

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.

NameTypeRequiredDefaultConstraintsDescription
stepsobject[]NoOrdered list of UI interaction steps
delayMsnumberNo300Delay between steps in ms (default 300)
screenshotOn`enum: nonefailureendeach`No
continueOnErrorbooleanNofalseWhen true, a failed non-optional step is recorded but the batch continues. Result includes failure_count + failures array. Default false (fail-fast). Use for diagnostic batches where partial results > first-failure abort.
device_batch()