stop_comfyui
Stop the local ComfyUI server started by comfy-cli. It safely shuts down only the recorded process, avoiding termination of unrelated ComfyUI instances.
Instructions
Stop the LOCAL ComfyUI server that comfy-cli launched.
Wraps comfy stop. Ownership semantics: comfy-cli only kills the pid it
recorded when IT launched the server (via launch_comfyui) — it cannot
stop a ComfyUI started by the desktop app or by hand, and raises
:class:ComfyCliError naming "no recorded server" instead of killing an
unrelated process.
Prints text with no JSON envelope; success returns a synthesized
{"ok": True, ...}.
One lifecycle call at a time — shares _LIFECYCLE_LOCK with
launch_comfyui/restart_comfyui; refused immediately if one of those
is in flight, rather than racing comfy-cli's single recorded pid.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "stop_comfyui"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||