Import an image from a URL
import_imageCopy a PNG, JPEG or WebP image (at most 8 MB) from a public https URL into the user's uploads as a libraryUrl. Only images the user has the right to use. Free. Needs the "write" permission.
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": {
"url": "<url>"
},
"name": "import_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | A public https:// URL of a PNG, JPEG or WebP image, at most 8 MB. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| libraryUrl | Yes | The stored copy: pass it as an image reference. | |
| contentType | Yes | The image type, such as image/jpeg. |