set_defaults
Set default generation parameters like width and steps to reduce repetitive inputs. Optionally save changes to the config file for persistence.
Instructions
Update generation defaults. By default updates the in-memory runtime layer (lost on restart). Pass persist=true to also write the change into the config file (~/.config/comfyui-mcp/config.json by default). Use this to avoid repeating common values like width, height, steps, cfg, sampler, checkpoint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | Yes | Key/value map of defaults to set. Keys are typically lowercase (e.g. width, steps). | |
| persist | No | If true, write to the config file in addition to runtime. |