Get filament slot mapping
get_filament_slot_mappingCheck which printer tray each plate filament will map to before sending, verify the tray matches the slot preset, and flag warnings without sending anything.
Instructions
Show which printer tray each filament of the plate would print from on the next Send, and whether that tray holds what the slot's preset says (Bambu Lab AMS, or an Elegoo Centauri Carbon 2's CANVAS); read-only. The check to run before telling the user a plate is ready to send.
The filaments listed are the ones on the plate the next Send would use, each with its
0-based index (on a Bambu Lab printer also slot, the 1-based number the sidebar shows), type, preset name, colour,
the tray it maps to (or null), the source of that choice and any warnings. valid is true when
that Send would go through without a choice from the user; if not, problems says why. Nothing
is sent to the printer. A supported false reply carries a reason to relay, as
get_printer_slots does.
On a Bambu Lab printer (kind "bambu", the OrcaSlicer MCP build with bambu_ams) the mapping is
the one OrcaSlicer's Send dialog pre-fills: it takes a tray only when the AMS's filament type
equals the slot preset's type, then the nearest colour. Each filament gets match: exact
(its tray holds its type; note names the tray's filament when it is a different one of the
same type), soft (no tray holds the type, but candidates hold the same base material, say
Polymaker LW-ASA / ASA-Aero in A2 for a Generic ASA slot: the Send dialog takes it if the user
picks it, so show both names and ask), none (nothing loaded fits: load a spool or change the
slot's preset) or unknown. Relay headline and warnings; they already say what to do.
On an Elegoo CC2 (kind "canvas", fork v2.4.2-mcp.14 or later) the source is saved, matched, user, api or none, and set_filament_slot_mapping can change it. It reads the printer when no slot list is cached, so it can take up to about 18 seconds, and OrcaSlicer's API serves one request at a time meanwhile, so other tools wait.
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_filament_slot_mapping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||