check_material_match
Compare the print file's required material against Kiln's recorded material for a printer to detect mismatches, unmatched spools, or confirmed matches before starting a job.
Instructions
Check whether the material Kiln has on record matches what a print expects.
Answers about Kiln's material RECORD, which normally holds what a person
or agent typed via ``set_material`` — not a sensor reading. Three
answers, and the third one matters: ``match: true`` (the record agrees),
``match: false`` (it disagrees — worth stopping for), and ``match: null``
(nothing is recorded for this printer, so this is neither a match nor a
mismatch and the spool needs an eye on it). ``sensed`` says whether a
machine reported the material; when it is false, do not tell the user
the material is confirmed.
Args:
expected_material: The material the print file requires.
printer_name: Target printer. Omit to resolve the active printer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| printer_name | No | ||
| expected_material | Yes |