Install an APK
install_apkInstalls a local APK on one Android device via adb, with optional device serial, replacement flag, and timeout. Returns INSTALL_FAILED_* details when installation fails.
Instructions
Install a local APK on one device via adb install. Fails with INSTALL_FAILED_* details from the device when the package cannot be installed.
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": "install_apk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial from list_devices; optional when exactly one device is connected. | |
| replace | No | Pass -r to replace an already installed package (default false). | |
| apk_path | Yes | Path to the APK on the host machine (not on the device). | |
| timeout_ms | No | Install timeout in milliseconds (default 120000; large APKs are slow). |