Update Expansion File
update_expansion_fileAssign a version's expansion file reference to another version's file, replacing the current OBB resource for that app version.
Instructions
Set a version's OBB reference, replacing the whole resource.
Same effect as patch_expansion_file but with the API's update (full replace) 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": "update_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 | |||