run_build
Builds Android apps using configured server-side profiles and optionally installs the generated APK on a connected device.
Instructions
Run a configured server-side build profile. Optionally install the resulting APK when the profile declares artifactPath.
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": {
"profile": "<profile>"
},
"name": "run_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | Yes | Configured build profile name, for example debug or release | |
| device_serial | No | ADB serial such as emulator-5554, a USB serial, or host:port. If omitted, the active device is used; a sole ready device is selected automatically. | |
| install_after_build | No | Install the built APK on the selected device after a successful build |