set_recipe_image
Set or replace the photo for a custom Cookidoo recipe by supplying an image URL or base64 image data.
Instructions
Setzt oder ersetzt das Foto eines eigenen Custom-Rezepts.
Genau eine Bildquelle angeben:
image_url: https-URL eines JPEG- oder PNG-Bilds (maximal 10 MB); der Server laedt das Bild selbst herunter.
image_base64: Bilddaten als Base64, optional mit "data:image/...;base64,"-Praefix (z. B. Foto aus einem PDF). Das Bild vor der Einbettung auf ca. 800 px Kantenlaenge verkleinern und als JPEG mit Qualitaet ca. 70 speichern, damit die Anfrage klein bleibt.
Das Bild muss mindestens 80x80 Pixel gross sein, sonst lehnt Cookidoo es ab - beim Verkleinern also nicht unter diese Grenze gehen.
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": {
"recipe_id": "<recipe_id>"
},
"name": "set_recipe_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_url | No | ||
| recipe_id | Yes | ||
| image_base64 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||