Set an image from a URL
set_image_from_urlPut an existing picture from a public web address on an ebook: as its cover image (cover: true), into an image block (blockId), or as a new image after a block (afterBlockId, with optional alt and caption). PNG, JPEG, WebP or GIF up to the editor's size limit; SVG is not accepted. Use pictures the user owns or may use. Replacing an image that is already there needs replaceExisting: true.
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": {
"projectId": "<projectId>",
"url": "<url>"
},
"name": "set_image_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | No | Alt text describing the picture, for a body image. | |
| url | Yes | A public https:// address of a PNG, JPEG, WebP or GIF picture. | |
| cover | No | true: set it as the cover image. | |
| blockId | No | Fill this existing image block (get_ebook gives block ids). | |
| caption | No | A caption under a NEW body image. | |
| projectId | Yes | The ebook (list_ebooks gives ids). | |
| afterBlockId | No | Insert a new image after this block (after its caption, for an image). | |
| replaceExisting | No | true to replace an image the block or cover already has. |