adb_batch_actions
Execute multiple Android input actions in one call to reduce ADB round-trips for multi-step UI interactions, with sequential execution and optional delays.
Instructions
Execute multiple input actions in a single tool call. Reduces ADB round-trips for multi-step UI interactions. Each action runs sequentially with an optional delay between them. Supported action types: tap, swipe, fling, long_press, double_tap, keyevent, text, drag, pinch, back, home, sleep.
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": {
"actions": "<actions>"
},
"name": "adb_batch_actions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial | |
| actions | Yes | Array of actions to execute (1-50) | |
| delayMs | No | Delay between actions in ms (0-5000, default 100) | |
| stopOnError | No | Stop execution if any action fails (default true) |