batch_actions
Runs a sequence of Android UI actions—such as tap, type, swipe, key, wait, or open app—in one call, stopping at the first error by default. Use it to automate multi-step phone or emulator tasks without root.
Instructions
Execute a sequence of non-root Android UI actions (tap, type_text, swipe, key, wait, open_app, open_settings, current_app, list_apps, ui_tree) in one call. Stops on the first error by default.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"steps": "<steps>"
},
"name": "batch_actions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | Ordered list of action steps, e.g. [{ "action": "tap", "index": 1 }, { "action": "type_text", "text": "wifi", "submit": true }, { "action": "ui_tree", "onlyChanged": true }]. | |
| onlyChanged | No | When returnUiTree is true, return only the delta diff (+/~/-) against the previous ui_tree. | |
| stopOnError | No | Stop execution immediately if a step fails (default true). | |
| returnUiTree | No | Append a final ui_tree snapshot after running all steps. |