Scale a recipe and recompute its nutrition
scale_recipe_nutritionScales ingredient lines by a factor or from original to target servings (parses mixed numbers and fraction characters), then recomputes total and per-serving nutrition with USDA FoodData Central values and FDA label rounding for the scaled recipe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | Ingredient lines, one per item, amount first: "2 cups all-purpose flour", "1/2 cup butter", "2 large eggs", "200 g chicken breast", "1 tsp salt". | |
| factor | No | Multiply every quantity by this, e.g. 2 or 0.5. Or give servings instead. | |
| target_servings | No | Servings you want. | |
| original_servings | No | Servings the recipe makes now. |