Import an image from a web address into the media library
colliedesk_kb_image_importFetch a PNG, JPEG, GIF or WebP image (at most 5 MiB) from its public http or https address and store it like colliedesk_kb_image_upload, so the article never loads it from the other site. Private, loopback and internal addresses are refused. The same bytes give the same image.
Needs: kb_media:create.
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": "colliedesk_kb_image_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | No | Alt text the editor offers when it inserts the image. | |
| url | Yes | The image's full http or https address. | |
| keep | No | Keep it in the library even if no article ever uses it. | |
| name | No | What the media library shows; the file name when left out. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes |