get_expansion_file
Retrieves the OBB main or patch expansion file attached to a specified APK version code, returning its size and referenced version. Use for legacy APK-only apps; app bundles use asset packs instead.
Instructions
Get the OBB expansion file attached to an APK version code, returning fileSize and referencesVersion. Legacy APK-only feature: apps shipping app bundles use asset packs instead and will get an error here.
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_version_code": "<apk_version_code>",
"expansion_file_type": "<expansion_file_type>"
},
"name": "get_expansion_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_name | No | App package name, e.g. 'com.acme.app' (defaults to GOOGLE_PLAY_PACKAGE_NAME) | |
| apk_version_code | Yes | Version code of the APK, e.g. '415' | |
| expansion_file_type | Yes | Which expansion file to read: 'main' or 'patch' |