coolapk_image_link
Converts Coolapk image URLs into signed, expiring HTTPS links hosted on the MCP server so chat clients can display images directly without anti-hotlink errors.
Instructions
把酷安图片地址转成可直接在聊天窗口显示的 https 链接(需远程 HTTP 部署)。
为什么需要它:酷安 image.coolapk.com 对非酷安客户端返回 HTTP 567(防盗链), 很多聊天类客户端又没有解码 base64 的能力,只能显示文字链接。此工具把图片 转成托管在 MCP 服务上的签名链接(/img),链接自带过期时间与 HMAC 签名, 任何能打开网页的客户端都能直接显示图片。
仅在远程 HTTP 模式可用:MCP 进程需配置 COOLAPK_PUBLIC_BASE(对外访问前缀, 例如 https://mcp.example.com)与 COOLAPK_HTTP_TOKEN(用作签名密钥)。
Args: urls: 一个或多个酷安图片 URL,用逗号、空格或换行分隔 ttl_minutes: 链接有效期(分钟),默认 120,最长 10080(7 天)
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": {
"urls": "<urls>"
},
"name": "coolapk_image_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | Yes | ||
| ttl_minutes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |