Upload Image
upload_imageDownloads an image from a public https link and stores it in the account's media library (QUESTIONSTAR Layout Editor → 'Aus Bibliothek wählen' / choose from library), so the picture is hosted by QUESTIONSTAR and the user can see, use and replace it in the application. Use it for survey logos, question images and backgrounds instead of placing an external link into a survey. Returns the library resourceID (for a survey logo pass it to apply_layout as logoResourceID), the stored image's url and thumbUrl, its width, height and size. Accepted: https links only, PNG / JPEG / GIF / WebP by content (SVG and documents are not), up to 15 MB; images wider or taller than 1000 px are scaled down to fit. Links to private, local or cloud-internal addresses are not fetched (also behind redirects). The write is verified server-side: the result is read from the stored library entry (its final url, thumbnail and dimensions), not from the request. Each call stores a new library entry, even for the same link.
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": "upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public https link to the image (PNG, JPEG, GIF or WebP, up to 15 MB). The server downloads it; the link itself is never placed into a survey. | |
| description | No | Name of the picture in the library, as the user will see it (e.g. 'ACME logo'). Omit to use the file name from the link. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL of the stored image on QUESTIONSTAR's content host (what surveys use). | |
| size | No | Size of the stored file in bytes. | |
| width | No | Width of the stored image in pixels (after scaling when the original exceeded 1000 px). | |
| format | No | Stored format: png, jpeg, gif or webp (detected from the content). | |
| height | No | Height of the stored image in pixels. | |
| scaled | No | true when the image was scaled down to fit 1000 px. | |
| thumbUrl | No | URL of the 200 px PNG thumbnail; null when none could be generated. | |
| resourceID | No | Identifier of the picture in the account's media library — pass it to apply_layout as logoResourceID for a survey logo. | |
| description | No | Name of the picture in the library. |