Build, install and run
build_runBuild, install, and launch an Android app in one step, using adb to deploy the APK to a device or emulator and the app ID to start it.
Instructions
Build the APK, install it on a device/emulator (adb install -r), and launch the app. Needs appId (session default or argument) to launch.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "build_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | No | Application id to launch (defaults to session) | |
| module | No | Gradle module, e.g. 'app' (defaults to session) | |
| serial | No | Device serial (defaults to session or the only device) | |
| variant | No | Build variant, e.g. 'debug' (defaults to session) | |
| projectDir | No | Project root (defaults to session) |