Get printer trays
get_printer_slotsReads filament trays from Bambu Lab AMS, external spool, or Elegoo CANVAS units and returns each slot's status, material, brand, color, and remaining filament.
Instructions
Read the printer's filament trays: a Bambu Lab printer's AMS and external spool (instant), or an Elegoo Centauri Carbon 2's CANVAS unit (slow, up to about 18 s). Read-only.
The reply says which kind of printer answered. On a Bambu Lab printer (kind "bambu": the
printer selected in OrcaSlicer's Device tab, read from the state OrcaSlicer's own connection
keeps, nothing sent to the printer) each tray has its label as the AMS panel shows it (A1,
HT-A, Ext), status (loaded, unknown, empty), filament_type as the AMS words it (ASA-Aero,
PLA-CF, ...), filament_name, brand, colour, remain_percent, whether it is the tray feeding the
nozzle (active), and ams summarises the units with their humidity. unknown_filament is
true when a spool is in but the printer reports no type or colour for it: the user sets it
in the AMS panel. Needs the OrcaSlicer MCP build with the bambu_ams capability.
On an Elegoo CC2 (kind "canvas") each tray has its label, status (loaded, preloaded: filament waiting at the feeder; disconnected; error), material, brand and colour, and canvas_id and tray_id for set_filament_slot_mapping. OrcaSlicer's API serves one request at a time while that printer is asked, so other tools wait. Needs fork v2.4.2-mcp.14 or later. ready is true when the tray can be printed from now.
When the printer is not supported or not reachable the reply is supported false with a reason (not_supported, no_printer_selected, printer_offline; on a CC2 not_elegoo_cc2, no_canvas, unreachable, too_many_clients, registration_refused, timeout, printer_error, firmware_too_old) and a message. Relay the message to the user.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_printer_slots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||