Update plant main photo
hortusfox_update_plant_photoUpdate a plant's main preview photo by providing an external URL or moving the current photo to the gallery before replacement.
Instructions
Update the main preview photo of a plant. Set external=true and provide a photo URL to use an external image. Optionally move the current photo into the gallery first. Endpoint: /api/plants/photo/update.
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": {
"plant": "<plant>"
},
"name": "hortusfox_update_plant_photo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| photo | No | External photo URL (required when external=true). | |
| plant | Yes | The plant ID. | |
| external | No | If true, use an external photo URL (provide `photo`). Default false. | |
| move_to_gallery | No | If true, move the existing main photo into the plant gallery before replacing. |