install_apk
Installs an APK or split app bundle from a host path or HTTP(S) URL, replaces the existing version by default, and returns the package name and version.
Instructions
Installs an APK, or a split bundle (.apks, .xapk, .apkm), from a host path or an http(s) URL. Replaces an installed version by default. Returns the package name and version.
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": {
"source": "<source>"
},
"name": "install_apk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Host path or URL of the APK or bundle. | |
| downgrade | No | ||
| allow_test | No | Allow test-only APKs, as Android Studio debug builds are (-t). | |
| extra_splits | No | More split APK paths installed together with source. | |
| grant_permissions | No | Grant all runtime permissions (-g). |