comfy_sweep_grid
Enqueue every combination of multiple workflow parameters in a Cartesian grid, with configurable limits and per-prompt assignment labels for output tracking.
Instructions
N-dimensional parameter sweep over a Cartesian product of axes.
Where comfy_sweep varies one widget across a list, this enqueues every combination across multiple axes. E.g. seed x cfg x steps with 3 values on each axis produces 27 queued prompts.
Args: workflow: Base API-format workflow. axes: Mapping of 'node_id.param' -> list of values. At least 1 axis; order is preserved for the returned grid_shape. max_combinations: Hard cap on total queued prompts. Reject the call when the Cartesian product would exceed this. Default 64.
Returns: JSON with prompt_ids list (length = product of axis sizes), the grid_shape (e.g. [3, 3, 3] for 3x3x3), and a per-prompt assignment map so the caller can label each output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axes | Yes | ||
| workflow | Yes | ||
| max_combinations | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |