update_comfyui
Update a local ComfyUI installation by choosing ComfyUI core, every custom node pack, or comfy-cli itself. Updating all custom packs requires user confirmation first.
Instructions
Update the LOCAL install — ComfyUI core, the custom node packs (asks first), or comfy-cli.
Wraps comfy update <target>.
Args:
target: "comfy" (default) updates ComfyUI core (git pull +
reinstall). "all" updates every installed custom node pack via
the node manager — NOT core, and the only target that prompts.
"cli" updates comfy-cli itself.
confirm_update_all: only read for target="all". The user is always
prompted by name on a client that supports MCP elicitation
regardless of this flag. Set it True ONLY when the user has
actually agreed — the fallback for a client that cannot be
prompted, never a way to clear an error.
Returns:
A synthesized {"ok": True, "message": ...} (comfy-cli prints human
text here, no JSON envelope).
Gotchas:
- For target="all", ok: True is NOT proof every pack updated —
the node manager swallows a per-pack failure and still exits 0. Read
message and re-check server_info's freshness.packs.
- Restart afterward: a running ComfyUI keeps the code it loaded at
boot (target="cli" needs no restart).
- One update at a time: refused immediately while another update (or
switch_comfyui_version) is in flight.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | comfy | |
| confirm_update_all | No |