set_ams_slot
Assign filament type, color, preset ID, and nozzle temperature range to an AMS slot or external spool without moving filament, keeping printer material mappings accurate.
Instructions
Set the material shown for an AMS slot or external spool (type, colour, filament preset id, nozzle temperature range). Does not move filament.
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": {
"tray_type": "<tray_type>",
"color": "<color>"
},
"name": "set_ams_slot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | No | Slot 1-4 (as printed on the AMS). | |
| color | Yes | RRGGBB or #RRGGBB. | |
| ams_id | No | AMS unit id (0-3, 128+ for AMS HT). Omit with external. | |
| printer | No | Printer name or serial from the config. Default: the first printer. | |
| external | No | External spool instead of an AMS slot. 'main' on single-nozzle printers; left/right on H2D. | |
| tray_type | Yes | e.g. PLA, PETG, ABS-GF, HIPS. | |
| filament_id | No | tray_info_idx, e.g. GFA00. Default: generic id for the type. | |
| nozzle_temp_max | No | ||
| nozzle_temp_min | No |