adb_install
Installs an APK file on a connected Android device, replacing an existing app when needed. Provide the local APK path; optionally specify a device serial if multiple devices are connected.
Instructions
Install an APK file on the Android device.
Replaces the existing installation if present (-r flag).
Args: apk_path: Absolute path to the .apk file on the local machine. device: Device serial number. If omitted, auto-selects when only one device is connected.
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": {
"apk_path": "<apk_path>"
},
"name": "adb_install"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ||
| apk_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |