restart_comfyui
Restart local ComfyUI server by stopping the running instance and launching a fresh one, with options to confirm network exposure and kill untracked processes. Ensures a clean server restart for updated configurations.
Instructions
Restart the LOCAL ComfyUI server: stop the running one, then launch a fresh one.
Composes stop_comfyui + launch_comfyui (no comfy restart verb);
extra_args forward to the new server. Returns the new server's status.
Carries launch_comfyui's network-exposure confirmation unchanged
(non-loopback --listen/--enable-cors-header asks the USER, BEFORE
the stop so a decline leaves the server alone); confirm_network_exposure
is the no-prompt fallback.
The stop is swallowed only for "nothing to stop"; other stop failures
raise. If the freed port is then held by a server comfy-cli didn't start,
this identifies it and asks the USER to recycle it — gated the same way,
via confirm_kill_untracked (default False kills nothing); a decline
reproduces the port error. Skipped with a remote target configured.
One lifecycle call at a time — a concurrent launch/stop/restart is refused immediately rather than racing comfy-cli's one recorded server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| extra_args | No | ||
| confirm_kill_untracked | No | ||
| confirm_network_exposure | No |