Add an image
add_mediaFor shop owners: store an image for the shop and get its media_id, which blocks and listings take. Give url (a public https link straight to the image file, which Confita downloads) or data (base64). JPEG, PNG or WebP, up to 5 MB. Confita does not look at the picture: alt says what it shows.
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": {
"request_id": "<request_id>"
},
"name": "add_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | No | What the picture shows, in the shop's main language, for people who cannot see it. | |
| url | No | A public https address of the image file. | |
| data | No | The image file, base64. | |
| request_id | Yes | Unique per call; the same id again returns the first result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| next | No | ||
| error | No | ||
| width | No | ||
| height | No | ||
| outcome | No | ||
| media_id | No | ||
| timezone | No | ||
| confirmation | No |