set_comfyui_setting
Change a persisted ComfyUI frontend setting by its ID, such as workflow validation or preview method. The new value is saved immediately and applies after a UI refresh.
Instructions
Modify the ComfyUI user's persisted frontend UI setting by id. This writes ComfyUI's OWN user settings store (the Comfy.* ids the Settings panel manages) — NOT get_defaults/set_defaults, which is our separate MCP store. The change is persisted immediately and takes effect on the next frontend load/refresh (an already-open UI tab keeps its old value until reloaded). The value is stored as-is: booleans/numbers are NOT coerced from strings, so pass true (not "true") and 2 (not "2"). Known ids: Comfy.Validation.Workflows (boolean; loosening it lets stricter custom-node workflows load), Comfy.PreviewMethod (auto|latent2rgb|taesd|none), Comfy.LinkRenderMode (0 straight / 1 linear / 2 spline / 3 hidden), Comfy.UseNewMenu, Comfy.Sidebar.Location. Ids are frontend-defined; an unknown id is stored verbatim and simply ignored by the UI. Returns { id, previous, value } — the prior value is read first so you can report and undo the change (previous is null when the key was unset).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Setting id, e.g. 'Comfy.Validation.Workflows'. | |
| value | Yes | New value. Stored as-is; booleans/numbers are NOT coerced from strings (pass true, not "true"). |