按 URL 上传图片
upload_image_from_url登录;镜像公开HTTP(S)图片,验大小/格式/SSRF/安全。avatar二维码/联系拒绝须换图,禁重试同图;moment-image仅JPEG/PNG/WebP。URL再写对象;组织logo用fetch_organization_logo,禁假URL。
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": {
"sourceUrl": "<sourceUrl>"
},
"name": "upload_image_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | 用途决定存储/机审,默认avatar;activity-poster长图不缩尺寸≤20MB,moment-image配图≤20MB | |
| sourceUrl | Yes | 图片的公开 http(s) URL |