adb_test_gen_from_ui
Analyzes the current Android screen to generate a tap-based test workflow that screenshots each interactive element and checks for crashes, producing JSON compatible with adb_workflow_run.
Instructions
Analyze the current screen and generate a test workflow that taps each interactive element, takes screenshots, and verifies the app doesn't crash. Produces a workflow JSON compatible with adb_workflow_run.
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": {
"packageName": "<packageName>"
},
"name": "adb_test_gen_from_ui"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial | |
| packageName | Yes | Package name to monitor during test (used for logcat filtering and crash detection) | |
| returnToStart | No | Press Back after each tap to return to the starting screen | |
| screenshotAfterEach | No | Take a screenshot after each tap |