get_cover_image
Fetches a game cover image from the remote library, saves it locally, and returns the file path and size. Uses CDN first, falls back to GitHub API if needed.
Instructions
从远程游戏库下载指定游戏的封面图片({game_id}.webp)。优先走 jsDelivr CDN,失败时回退到 GitHub Contents API。写入本地文件后返回路径与大小。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| game_id | Yes | 游戏 ID(与封面文件名 {game_id}.webp 对应) | |
| library | Yes | 目标游戏库 | desktop |
| use_cdn | No | 是否优先使用 jsDelivr CDN 下载(更快,无需 Token) | |
| token_gh | No | GitHub Token,仅在 CDN 失败回退到 GitHub API 时才需要;一般可留空。 | |
| output_path | No | 可选,保存到的本地绝对路径。未提供时写入系统临时目录并返回路径。 |