comfy_launch_server
Launch a specific ComfyUI workspace via comfy-cli with explicit port and host, preventing accidental parallel processes. Run in background or foreground with custom arguments.
Instructions
Start an explicitly selected ComfyUI workspace via comfy-cli.
This tool has no implicit 8188 fallback. workspace and port must
be explicit, and a healthy connected endpoint blocks launch unless the
caller deliberately sets allow_parallel=True. This prevents a Desktop
install on port 8000 from accidentally gaining a competing CLI process.
Args:
background: Run as a detached daemon (default True). False blocks
until the server exits.
port: Explicit port for ComfyUI's HTTP server.
host: Host to bind on. Default 127.0.0.1; use 0.0.0.0 for LAN access.
workspace: Optional --workspace path passed to comfy-cli (selects
which ComfyUI install to launch when multiple are present).
extra_args: Additional argv to forward verbatim after -- (e.g.
['--listen', '0.0.0.0', '--cpu']).
allow_parallel: Permit launch while the currently selected endpoint is
already healthy. Default False.
confirm: Explicitly confirm this process-start mutation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | 127.0.0.1 | |
| port | No | ||
| confirm | No | ||
| workspace | No | ||
| background | No | ||
| extra_args | No | ||
| allow_parallel | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |