edit_queued_job
Edit a pending ComfyUI queue job by providing a replacement workflow or node input patches; the job is removed and re-enqueued.
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}}. |