install_node
Install custom node packs into your local ComfyUI, asking for confirmation first. Skips unsupported IDs and reports per-pack failures, so you can verify results before proceeding.
Instructions
Install custom node packs into the LOCAL ComfyUI — runs third-party code, asks first.
Wraps comfy node install <name...> --exit-on-fail. Feed it registry pack
ids (e.g. "comfyui-impact-pack") from nodes /
workflow_deps — never a node CLASS name (convert it with
workflow_deps first); a git URL or an @version pin is refused
before anything runs (run comfy node install in a terminal for those).
Args: confirm_install: on a client that supports MCP elicitation, the user is always prompted by name regardless of this flag. Set it True ONLY when the user has actually agreed — it is the fallback for a client that cannot be prompted, never a way to clear an error.
Returns:
{"installed", "result", "restart_required"}, plus {"failed", "error"} when the engine reports any pack failed. installed lists
only packs NOT reported failed — check failed before telling the
user anything succeeded.
Gotchas:
- Does NOT restart ComfyUI: new nodes stay invisible until
restart_comfyui runs; restart_required is True whenever
anything installed.
- Requires a ComfyUI-Manager comfy-cli can drive (a legacy
custom_nodes/ clone doesn't count); otherwise returns
{"error": ..., "unsupported": True} and installs nothing —
check for that key before indexing ["installed"].
- A pack failure is often reported PER PACK in failed rather than
raised — a 0 exit does not mean every pack landed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names | Yes | ||
| confirm_install | No |