reload_comfyui
Restart ComfyUI to load newly installed custom nodes and optionally sync them to the knowledge base.
Instructions
Restart ComfyUI so that newly installed custom nodes are loaded, then optionally sync them to the knowledge base. Requires COMFYUI_PATH (ComfyUI installation directory) and uses COMFYUI_HOST for the port. Kills the process on the ComfyUI port and starts main.py from COMFYUI_PATH. After restart, call sync_nodes_to_knowledge to pick up custom nodes (or set sync_after_restart to true).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait_for_ready | No | Wait for ComfyUI to respond before returning. Default true. | |
| wait_timeout_ms | No | Max ms to wait for ComfyUI ready. Default 120000. | |
| sync_after_restart | No | After restart, run sync_nodes_to_knowledge to update the knowledge base with custom nodes. Default true when wait_for_ready is true. |