release_game_asset
Publish game installation package to GitHub/GitCode Releases by uploading the asset to the pre-existing release tag for the target version.
Instructions
发布游戏安装包到 GitHub/GitCode Release。需要对应的 Release tag(v{version})预先存在。
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": {
"token_gh": "<token_gh>",
"token_gt": "<token_gt>",
"library": "<library>",
"version": "<version>",
"game_id": "<game_id>",
"file_path": "<file_path>"
},
"name": "release_game_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| game_id | Yes | 游戏 ID,资源文件命名为 {game_id}.{ext} | |
| library | Yes | 目标游戏库(决定文件扩展名 .7z/.apk) | desktop |
| version | Yes | 游戏版本号,将使用 Release tag v{version} | |
| token_gh | Yes | GitHub Token | |
| token_gt | Yes | GitCode Token | |
| file_path | Yes | 本地安装包的绝对路径(.7z 或 .apk) | |
| upload_target | No | 上传目标平台 | both |