rerun_generation
Re-run any previous generation by retrieving its workflow from execution history and re-enqueuing it, with optional input overrides and seed randomization control.
Instructions
Re-run the workflow behind a previous generation. Retrieves the prompt graph from execution history (by prompt_id, or the most recent run when omitted — chosen by ComfyUI's queue number, same logic as get_history) and re-enqueues it, optionally applying inputs overrides. Seeds are re-randomized unless disable_random_seed is set. Returns the new prompt_id and the source prompt_id it came from. Clear error if no matching history exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | No | Optional overrides applied to every node with a matching input name (e.g. cfg, steps, sampler_name, seed, text). | |
| prompt_id | No | Prompt ID of the generation to re-run. If omitted, uses the most recent execution. | |
| disable_random_seed | No | If true, do not randomize seed fields (combine with inputs.seed to reproduce exactly). |