batch
Execute a sequence of device commands in a single request to automate multi-step workflows.
Instructions
Run multiple structured command steps in one daemon request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | No | Agent-device session name. | |
| platform | No | Platform selector used to resolve a device. | |
| deviceTarget | No | Device target form. Maps to the CLI --target flag. | |
| target | No | Alias for deviceTarget on commands without a UI target field. Interaction commands reserve target for the UI element. | |
| device | No | Device name selector. | |
| udid | No | iOS device UDID selector. | |
| serial | No | Android serial selector. | |
| iosSimulatorDeviceSet | No | iOS simulator device-set path used for device resolution. | |
| androidDeviceAllowlist | No | Android serial allowlist used for device resolution. | |
| daemonBaseUrl | No | Remote daemon base URL. | |
| daemonAuthToken | No | Remote daemon auth token. | |
| tenant | No | Remote tenant identifier. | |
| runId | No | Lease run identifier. | |
| leaseId | No | Existing lease identifier. | |
| cwd | No | Working directory for command execution. | |
| 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. | |
| onError | No | Batch failure policy. | |
| maxSteps | No | Maximum number of steps accepted for this batch. | |
| out | No | Optional output path for command artifacts. | |
| stateDir | No | Agent-device state directory. |