Prepare a target device + app
qa_prepare_targetPrepares an Android emulator and app under test by binding or booting the device, configuring Metro and adb reverse, installing, launching, and verifying.
Instructions
Prepare an Android Emulator and the app under test: bind or boot the device, Metro + adb reverse for RN/Expo, install, launch, verify. One combined consent covers boot/install; long steps return a jobId. bindOnly stops after bind/boot.
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": {
"sessionId": "<sessionId>"
},
"name": "qa_prepare_target"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apk | No | ||
| avd | No | ||
| appId | No | ||
| force | No | ||
| device | No | Target serial; required when >1 device is online. | |
| approve | No | ||
| bindOnly | No | Bind/boot + adb reverse only. | |
| headless | No | Boot the AVD headless (default true). | |
| consentId | No | ||
| sessionId | Yes | ||
| allowLaunchWithoutMetro | No | Launch a debug RN/Expo build without Metro (may RedBox). |