install_apk
Install APK files from project root or ADB_APK_ROOT to Android devices via ADB, supporting replacement, test builds, permission grants, and device selection.
Instructions
Install an APK contained within the active session project root, or the configured ADB_APK_ROOT when no session root is set.
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 |
|---|---|---|---|
| replace | No | Replace an existing application | |
| apk_path | Yes | Absolute path or path relative to the server process | |
| allow_test | No | Allow test-only APKs | |
| 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. | |
| grant_permissions | No | Grant runtime permissions |