set_defaults
Update generation defaults to avoid re-entering common values like width, height, steps, cfg, sampler, and checkpoint. Optionally persist changes to config file.
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. |