Upload Custom Recipe Image
upload_custom_recipe_imageReplace a custom recipe's photo by uploading a local JPEG, PNG, or WebP image file; it is re-encoded as JPEG and stripped of metadata before Cookidoo storage.
Instructions
Set the photo of one of the user's custom recipes from a local image file, replacing the current photo (which is lost). The file is sent to Cookidoo's image storage.
Only files inside the folders listed in the server's COOKIDOO_IMAGE_DIRS setting can be used; .jpg, .jpeg, .png and .webp up to 10 MB. The image is re-encoded as JPEG and all metadata (EXIF, GPS location, camera details) is removed before upload. Only call this with a file the user explicitly chose for this recipe.
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>",
"image_path": "<image_path>"
},
"name": "upload_custom_recipe_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recipe_id | Yes | The custom recipe ID returned by list_custom_recipes | |
| image_path | Yes | Absolute path of the image file |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |