Set a slot's filament preset
set_filament_slot_presetAssign a named filament preset to a single slot while preserving other slots and unsaved edits; single-filament projects are refused if unsaved edits exist.
Instructions
Point one filament slot at a named preset, leaving the other slots alone and never dropping an unsaved edit; the slot keeps its colour unless keep_colour is false.
On a multi-filament project it is the same as picking the preset in that slot's sidebar
combo: no unsaved print, filament or printer edit is touched. On a one-filament project the
slot is the Filament tab's preset, and switching it would drop every unsaved edit, so while
there are any the call is refused (unsaved_edits, naming them) and nothing changes: save
them or put them back first. The reply ends with filaments, the slots afterwards as
get_filament_slots lists them. Needs a build with the preset_slot capability; the colour
change needs a writable filament_colour (any build). Unknown names and presets not
compatible with the selected printer are refused.
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": {
"slot": "<slot>",
"name": "<name>"
},
"name": "set_filament_slot_preset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact name of a filament preset, as list_presets(type='filament') returns it. | |
| slot | Yes | The filament slot, 1-based as the sidebar numbers them. | |
| keep_colour | No | Keep the slot's current colour (the default). False sets the colour the preset carries as its default (default_filament_colour), when it has one. |