Patch Expansion File
patch_expansion_fileReuse an uploaded expansion file by linking it to another version code, so you can share OBB assets across builds without re-uploading.
Instructions
Point a version's OBB at one already uploaded against another version.
Large apps reuse the same expansion file across builds. This associates an existing OBB with a new version code instead of re-uploading it. Uses the API's patch (partial) semantics.
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": {
"package_name": "<package_name>",
"version_code": "<version_code>",
"expansion_file_type": "<expansion_file_type>",
"references_version": "<references_version>"
},
"name": "patch_expansion_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_name | Yes | App package name (e.g., com.example.myapp) | |
| version_code | Yes | Version code to attach the reference to | |
| references_version | Yes | Version code whose expansion file to reference | |
| expansion_file_type | Yes | "main" or "patch" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||