willys_plan_add_recipe
Add recipe ingredients to the needs registry, merging identical items across all recipes into a single need, without modifying the cart.
Instructions
Lägg ett recepts ingredienser i behovsregistret. Mängder slås ihop per vara över alla recept i planen, så tre recept som vill ha ägg blir ETT behov. Rör inte kundvagnen — kör willys_plan_apply för det.
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": {
"sessionId": "<sessionId>",
"recipe": "<recipe>",
"ingredients": "<ingredients>"
},
"name": "willys_plan_add_recipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | Vilken plan behoven hör till. Default "standard". Använd ett eget namn för en separat inköpsomgång. | |
| recipe | Yes | Receptets namn, t.ex. "Fisksoppa måndag". Samma namn igen ERSÄTTER det tidigare bidraget i stället för att dubblera — använd det när ett recept ska rättas. | |
| sessionId | Yes | ||
| ingredients | Yes |