Set config values
set_configChange OrcaSlicer project settings as unsaved, all-or-nothing edits: set keys to null to revert to saved preset values, then slice or save to persist.
Instructions
Change settings on the open project as unsaved edits, all or nothing; a key set to null goes back to its saved preset value; use apply_and_slice to also slice, or edit_preset to change a saved preset.
Returns {applied, errors}; if any key is invalid the whole batch is rejected and nothing
changes. Keys set to null are listed under reverted (or already_saved when they had no
unsaved edit).
With filament_slot the per-filament keys land in that slot's preset: OrcaSlicer binds the
Filament tab to the slot first, as the slot's edit button does, and the reply names the
preset written. A preset shared by several slots is still one preset, so the edit reaches
every slot using it (get_filament_slots shows shares_preset_with); to change one slot alone,
save_preset with filament_slot under a new name first. Only one filament preset can hold
unsaved edits at a time: when the Filament tab holds unsaved edits to a different preset the
call is refused with filament_edits_unsaved and nothing changes (save them, or put the keys
back, first). Unsaved print and printer edits are never touched.
Overrides show as modified in get_status, are not written to any preset file, and revert if the preset is reselected; call save_preset to persist them. Each apply invalidates the last slice, so re-slice afterwards. It does not run the physics gate, so for temperature, speed, acceleration, or flow keys run check_profile_physics before trusting the result. To edit a stored preset rather than the live project, use edit_preset.
Without filament_slot on a multi-filament setup, do filament edits before print edits: changing another slot's value means select_preset for that slot, which discards unsaved print overrides (docs/order-of-operations.md).
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": {
"changes": "<changes>"
},
"name": "set_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes | Map of OrcaSlicer config key to new value, e.g. {'layer_height': 0.2, 'sparse_infill_density': '15%'}. Values must match each setting's type; percent settings take strings like '15%'. Discover valid keys with search_settings, find_config_keys, or describe_setting. Do NOT echo back a get_config value for a per-filament setting (hot_plate_temp, fan_min_speed, nozzle_temperature_initial_layer, ...): get_config reports those merged across every loaded filament ('70,100,70,70,35'), while this writes one filament preset (the slot's with filament_slot, else the one open in the Filament tab), so pass that preset's single value instead. A key set to null goes back to the value saved in its preset (an unsaved edit undone). | |
| filament_slot | No | Write the per-filament keys to this slot's filament preset (1-based, as the sidebar numbers the slots; get_filament_slots lists them) instead of the preset open in the Filament tab. Needs the OrcaSlicer MCP build with the filament_slots capability. |