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.
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": {
"type": "<type>",
"weight_g": "<weight_g>"
},
"name": "spool_add"
}
}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 |