set_defaults
Update generation defaults for ComfyUI workflows. Set common parameters like width, height, steps, and sampler to avoid repeating them each time.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"values": "<values>"
},
"name": "set_defaults"
}
}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. |