upload_apk
Upload a legacy Android APK for an app that still ships APKs and return its versionCode for create_release; set dryRun to validate without publishing.
Instructions
Upload an APK (.apk). Returns its versionCode for create_release. New apps must use bundles (upload_bundle); APK upload is for apps that still ship APKs. Set dryRun:true to validate and discard.
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": {
"packageName": "<packageName>",
"filePath": "<filePath>"
},
"name": "upload_apk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview only: open a temporary edit, apply, validate, then delete it. Nothing is published (default false). Ignored when editId is set. | |
| editId | No | Optional: an open edit from insert_edit. The change is applied inside that edit and NOT committed — batch several changes, then call commit_edit. | |
| filePath | Yes | Absolute path to the .apk | |
| packageName | Yes | Application id (package name), e.g. com.example.app | |
| changesNotSentForReview | No | Commit option: keep the changes out of review until sent from Play Console. Google requires this for some apps and rejects it for others — set it only if a commit error asks for it. |