edit_queued_job
Modify a pending ComfyUI queue job by replacing its workflow or patching node inputs, then re-enqueue it with a new prompt ID.
Instructions
Edit a PENDING ComfyUI queue item by removing it and re-enqueuing an updated workflow. Provide either a complete replacement workflow or node_inputs patches keyed by node id. The job receives a NEW prompt_id; the old prompt_id is removed. Running jobs cannot be edited.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| position | No | Where to requeue the edited job. Defaults to back. | |
| workflow | No | Optional complete replacement API-format workflow. If omitted, the existing queued workflow is patched. | |
| prompt_id | Yes | The prompt_id of a pending queue item. | |
| node_inputs | No | Optional input patches keyed by node id, e.g. {"3":{"steps":30,"cfg":7}}. |