comfyui
Installation
SKILL.md
ComfyUI Workflows in OpenMontage
Use this skill before calling comfyui_image, comfyui_video, or comfyui_music, and when converting a community ComfyUI workflow into an OpenMontage tool call.
Server Contract
- ComfyUI must be running before the tool can generate. The default server is
http://localhost:8188; override it withCOMFYUI_SERVER_URL. - Running separate ComfyUI instances per capability (different GPU, different model set)?
COMFYUI_IMAGE_SERVER_URL/COMFYUI_VIDEO_SERVER_URL/COMFYUI_MUSIC_SERVER_URLeach overrideCOMFYUI_SERVER_URLfor that one tool only. Optional -- a single-server setup needs none of these. - Health and hardware status come from
GET /system_stats. - Jobs are submitted to
POST /prompt, completed outputs are read fromGET /history/{prompt_id}, and artifact bytes are downloaded withGET /view. - Long waits (video, music) prefer ComfyUI's websocket feed for immediate completion/error detection and transparently fall back to REST polling if
websocket-clientisn't installed. Either way, a timeout is recoverable: pass the error'sprompt_idback in asresume_prompt_idto resume waiting on the same job instead of resubmitting it. - Export workflows with ComfyUI's API-format JSON, not the UI layout format. If a downloaded workflow will not submit, re-export it from ComfyUI with API format enabled.