set_workflow_params
Store workflow parameters (CFG, steps, sampler, scheduler) in session memory so every later image generation reuses the same settings without repeating them per call.
Instructions
Remember workflow parameters for the rest of this session (CFG, steps, sampler, scheduler, flow_shift, eta, hi-res fix, VAE tiling, LoRA ...). Use it for batch runs where every image shares the same look, instead of repeating params on each call. Values are sent in the HTTP payload per job -- they never touch LocModel's config.json, which the GUI rewrites. Returns the effective parameter table with defaults, ranges and the source of each default. Call reset_workflow_params to drop everything and fall back to the LocModel GUI panel settings.
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": {
"params": "<params>"
},
"name": "set_workflow_params"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| merge | No | true (default) adds to the current set, false replaces it. | |
| params | Yes | Parameter names and values to remember for the rest of this session, e.g. {"cfg": 3.5, "scheduler": "karras", "steps": 12}. Applies to every later generate_image / edit_image / redraw_image call that does not set the same knob itself. Lives in the MCP process memory only: nothing is written to disk, and it disappears when the MCP process restarts. |