upload_cover_image
Upload or update a game's cover image to the data branch. The tool automatically resizes images to a maximum of 640x480 and converts them to WebP, then syncs the image across both repositories.
Instructions
上传或更新游戏封面图片到 data 分支。自动缩放(最大 640x480)并转换为 WebP 格式。图片在两个仓库同步。
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>",
"image_path": "<image_path>",
"game_id": "<game_id>"
},
"name": "upload_cover_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| game_id | Yes | 游戏唯一 ID(只允许字母数字下划线) | |
| library | Yes | 目标游戏库 | desktop |
| token_gh | Yes | GitHub Token | |
| token_gt | Yes | GitCode Token | |
| image_path | Yes | 本地图片文件的绝对路径(支持 webp/png/jpg 等格式) |