set_material
Records which filament material is loaded in a printer as a user-reported claim, so agents can track stock and link a spool for usage counting.
Instructions
Record which filament material is loaded in a printer.
This writes down a CLAIM, not a measurement: nothing verifies the spool,
and the record keeps saying the same thing after a filament swap. Kiln
stamps it ``determined_by: user_reported`` and every reader says so, so
never report the recorded material back as confirmed or sensed.
Args:
printer_name: Target printer name.
material: Material type (PLA, PETG, ABS, etc.).
color: Optional filament color.
spool_id: Optional ID of a tracked spool (see ``list_spools``).
Linking one is what lets Kiln count that spool down as this
printer prints from it.
tool_index: Extruder index for multi-tool printers (default 0). On
a printer with a multi-material unit, the tray's id as
``ams_status`` reports it.
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": {
"printer_name": "<printer_name>",
"material": "<material>"
},
"name": "set_material"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Optional filament color. | |
| material | Yes | Material type (PLA, PETG, ABS, etc.). | |
| spool_id | No | Optional ID of a tracked spool (see ``list_spools``). Linking one is what lets Kiln count that spool down as this printer prints from it. | |
| tool_index | No | Extruder index for multi-tool printers (default 0). On a printer with a multi-material unit, the tray's id as ``ams_status`` reports it. Default: 0. | |
| printer_name | Yes | Target printer name. |