scaleRecipe
Scale a recipe's raw ingredients by factor, target servings, or desired macro total. For macro scaling, supply the recipe's current totals; amounts in discrete units are reported as fractions.
Instructions
Scale a raw ingredient list. Scaling to a macro target needs the recipe's current totals, from computeBatchMacros: this server does not infer what a recipe contains. Amounts in discrete units such as eggs are reported when they land on a fraction, never rounded here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | ||
| ingredients | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| factor | Yes | ||
| warnings | Yes | ||
| arithmetic | Yes | ||
| ingredients | Yes | ||
| scaledTotals | Yes |