adb_workflow_run
Run JSON-defined Android device workflows with variable substitution, conditional steps, and loops to automate shell, install, screenshot, logcat, and other ADB tasks.
Instructions
Execute a workflow — a JSON-defined sequence of device operations with variable substitution, conditional steps, and loop support. Supported actions: shell, root_shell, install, screenshot, logcat, getprop, sleep. Pass the workflow as a JSON string or provide a saved workflow name.
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": {
"workflow": "<workflow>"
},
"name": "adb_workflow_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial | |
| dryRun | No | Validate and show execution plan without running | |
| workflow | Yes | Workflow JSON string, or the name of a saved workflow file | |
| variables | No | Override workflow variables (merged with defaults) |