add_recipe_to_cart
Adds a recipe's products to a chosen store's cart after user confirmation, with options to skip, swap, or include items; it never orders or pays.
Instructions
Put a recipe's products in one store's cart, as get_recipe shows them.
ASK THE HUMAN FIRST: show the list from get_recipe and get a yes. Never orders or pays.
Adds to what is already in the cart, so calling it twice adds twice.
have_at_home items (salt, oil) are left out unless named in include. skip leaves out
ingredients; swap maps an ingredient (or product id) to one of its alternatives' product
ids. Names: ingredient or product id. Returns before/added/after per product, the skipped
items and the new cart. Check ok per product: a store can refuse some lines; tell the
human which ones failed. BilkaToGo: one pack per product; persons is not used.
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": {
"store": "<store>",
"recipe": "<recipe>"
},
"name": "add_recipe_to_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skip | No | Ingredient names or product ids to leave out. | |
| swap | No | Ingredient name or product id → the alternative's product id. | |
| store | Yes | One store: "nemlig", "bilkatogo" or "rema1000". | |
| recipe | Yes | The recipe's link or id, as given to get_recipe. | |
| include | No | `have_at_home` items to buy anyway, e.g. ["olie"]. | |
| persons | No | People to cook for, 2-12. Leave out for the recipe's own. |