Skift vare
replace_shopping_list_itemUse this when the user wants an item on their Goma shopping list to be another product, e.g. one of the alternatives add_items_to_shopping_list returned, or a free-text item to become a real product. Needs itemId from add_items_to_shopping_list or get_shopping_list and productId from an earlier result. The quantity stays. Returns the new product.
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": {
"itemId": "<itemId>",
"productId": "<productId>"
},
"name": "replace_shopping_list_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | ||
| productId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | ||
| product | Yes |