Add a recipe to the cart
add_recipe_to_cartAdds a recipe's required ingredients to the Picnic cart, skipping pantry items and alternatives by default; optionally include or skip specific ingredients. Does not place an order.
Instructions
Add a recipe's needed ingredients to the cart, like the app's 'add all' button. Ingredients the user probably has at home, pantry items and alternatives are left out by default. Use include_ingredient_ids (from get_recipe) to add ones the user lacks, and skip_ingredient_ids to leave out needed ones the user already has. Does not place an order.
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": {
"recipe_id": "<recipe_id>"
},
"name": "add_recipe_to_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| portions | No | ||
| recipe_id | Yes | Recipe id from search_recipes or create_recipe | |
| skip_ingredient_ids | No | ||
| include_ingredient_ids | No |