bulk_clone_and_swap
Create multiple recipe variants by cloning a template and swapping a specified ingredient per entry. Each operation runs independently, with dry-run enabled by default to prevent accidental changes.
Instructions
The copy-and-swap loop. For each entry: clone template_recipe_id via scale_recipe, rename it, then replace the designated ingredient line with a different ingredient_id. Runs sequentially and independently per entry, so one failure does not poison the rest. Defaults to dry_run:true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to execute. | |
| dry_run | No | Default true. | |
| entries | Yes | One entry per new recipe. | |
| delay_ms | No | ||
| template_recipe_id | Yes | The fully-configured template recipe to clone from. | |
| swap_recipe_ingredient_id | Yes | The recipe_ingredient line ID ON THE TEMPLATE that should be replaced. The clone's corresponding line is located by matching ingredient_id. |