batch
Execute multiple device commands in one daemon request with a 90-second timeout and stop-on-error handling.
Instructions
Execute multiple commands in one daemon request. Times out after 90s.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | No | Optional output path for command artifacts. | |
| udid | No | Apple device or simulator UDID. | |
| debug | No | Enable debug diagnostics. | |
| steps | Yes | Structured batch steps. Each step uses a command name and the same input object as that command tool. | |
| device | No | Device name; ids go in udid or serial. | |
| serial | No | Android, HarmonyOS, or Vega VVD serial. | |
| target | No | Alias for deviceTarget. | |
| onError | No | Batch failure policy. | |
| session | No | Session name. | |
| maxSteps | No | Maximum number of steps accepted for this batch. | |
| platform | No | Device platform. | |
| includeCost | No | Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text. | |
| deviceTarget | No | Device form factor. | |
| responseLevel | No | Result detail: digest (smallest) or full (largest), as JSON; default is compact text. | |
| mcpOutputFormat | No | Result text: compact optimized (default) or the full result as JSON (larger). |