Skip to content

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.

NameTypeRequiredDefaultConstraintsDescription
stepsunknownNoOrdered list of UI interaction steps
delayMsunknownNo
screenshotOnunknownNo'failure'When to capture screenshots
continueOnErrorunknownNofalse
finalSnapshotunknownNo'salient'
device_batch()