comfy_restart
Safely restart a local ComfyUI instance via Manager V2, validating the instance before restart and avoiding port 8188 conflicts.
Instructions
Safely restart the selected local instance through Manager V2.
First call comfy_instance_doctor and pass back either its
instance_id or listener PID. The selector is checked immediately before
the mutation. Desktop/Manager V2 is used when available; ComfyPilot never
falls back to launching a competing server on port 8188.
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": "comfy_restart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| expected_pid | No | ||
| timeout_seconds | No | ||
| wait_for_health | No | ||
| expected_instance_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |