upload_image
Upload images to Qiniu CDN, convert them to WebP format, and return optimized CDN URLs for use in blogs or websites.
Instructions
Upload a local or remote image to Qiniu CDN, convert to WebP format, and return the CDN 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": {
"source": "<source>",
"slug": "<slug>"
},
"name": "upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Local file path or HTTP/HTTPS URL of the image to upload | |
| slug | Yes | The slug identifier for the filename (will be prefixed with date) | |
| path | No | Upload directory path on CDN (default: 'images') | images |