update_ingredient
Update an existing ingredient's details, such as renaming it to remove '(copy)' suffixes.
Instructions
Update an ingredient in the library. PUT /ingredients/{id}. Use for renaming (e.g. stripping '(copy)' suffixes).
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": {
"ingredient_id": "<ingredient_id>",
"fields": "<fields>"
},
"name": "update_ingredient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | e.g. {name: 'Vanilla Concentrate'} | |
| as_json | No | ||
| ingredient_id | Yes |