upload_app_file
Upload APK or AAB files from a local path to AppGallery Connect, with automatic chunking for files over 4 GB.
Instructions
Upload APK/AAB from local disk to AppGallery (get URL → upload, auto-chunked >4 GB → attach to draft).
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": {
"file_path": "<file_path>",
"file_type": "<file_type>"
},
"name": "upload_app_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | No | AppGallery Connect app ID. Optional if HUAWEI_APP_ID is set in the environment. | |
| file_path | Yes | Absolute local path to APK or AAB. | |
| file_type | Yes | 1=APK, 2=RPK, 5=AAB. |