spool_add
Register a filament spool with its weight so the print scheduler can verify jobs fit and subtract usage after each print, with optional immediate loading into a printer slot.
Instructions
Register a filament spool with its weight so the scheduler can check a job fits and subtract usage after each print. Optionally load it into a printer slot right away.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Label, e.g. 'Bambu PLA red' | |
| slot | No | AMS slot 0-3 (unit 1), 4-7 (unit 2)... or 254 for the external spool | |
| type | Yes | PLA, PETG, ABS, TPU... | |
| brand | No | ||
| color | No | RRGGBB | |
| weight_g | Yes | Filament weight when full (e.g. 1000) | |
| printer_id | No | ||
| remaining_g | No | Defaults to weight_g | |
| price_per_kg | No | Used for cost calculation |