scale_recipe
Copy an existing recipe with optional scaling. Clones template with label settings and tags, enabling quick ingredient swaps.
Instructions
Copy (and optionally scale) an existing recipe. POST /recipes/{id}/scale. This is the copy-and-swap primitive: cloning a configured template carries its label settings and tags forward, so you only replace one ingredient afterward. Pass a scale factor of 1 for a straight copy.
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": "scale_recipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | e.g. {name: 'New Recipe Name', scale_factor: 1}. Parameter names for this endpoint are not published; run once against a throwaway recipe to confirm. | |
| as_json | No | ||
| recipe_id | Yes | Recipe to copy. |