switch_comfyui_version
Roll back or pin the local ComfyUI installation to a chosen version. Stashes uncommitted changes, reinstalls dependencies, and asks for consent before making destructive changes.
Instructions
Move the LOCAL ComfyUI install to a specific version — DESTRUCTIVE, asks first.
Wraps comfy update comfy --version <version>: stashes uncommitted
changes, moves the checkout, reinstalls dependencies. Use to roll BACK —
update_comfyui only moves forward.
Args:
version: "nightly", "latest", or a release tag with or
without the leading v ("0.24.0"/"v0.24.0"); anything
else is refused before any subprocess runs.
Canonical flow — this tool does not restart anything::
stop_comfyui -> switch_comfyui_version -> launch_comfyui -> server_infoGotchas:
REFUSES while a local ComfyUI is running — stop it first.
Consent is per call, from the USER: an MCP client prompts even with
confirm_switch=True; that flag is the no-prompt fallback — set it ONLY when the user has actually agreed.Shares
update_comfyui's lock — refused if either is already running.
Returns {"switched_to", "result", "restart_required": True} — always
True.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | Yes | ||
| confirm_switch | No |