set_temperature
Set target hotend and heated bed temperatures on a 3D printer; pass 0 to turn a heater off or omit a value to leave it unchanged.
Instructions
Set the target temperature for the hotend (tool) and/or heated bed.
Args:
tool_temp: Target hotend temperature in Celsius. Pass ``0`` to turn
the heater off. Omit or pass ``null`` to leave unchanged.
bed_temp: Target bed temperature in Celsius. Pass ``0`` to turn
the heater off. Omit or pass ``null`` to leave unchanged.
printer_name: Which printer to heat. Omit for the default printer.
The safety ceiling follows the named machine; a printer with no
declared model is held to the generic floor — set its model with
``set_printer_model`` (or ``add_safety_profile``) when that floor
refuses a temperature.
At least one of ``tool_temp`` or ``bed_temp`` must be provided.
Common PLA temperatures: tool 200-210C, bed 60C.
Common PETG temperatures: tool 230-250C, bed 80-85C.
Common ABS temperatures: tool 240-260C, bed 100-110C.
Branch on ``outcome`` — one field, three values, the same shape
``start_print`` uses for ``print_start``:
- ``"confirmed"``: the printer, in a report AFTER the command, shows the
effect. Reported per heater under ``tool`` and ``bed``.
- ``"accepted"``: the command was sent and not refused, and the printer
has not shown the effect yet. Normal on a quiet printer. Read
``printer_status()`` before building on it.
- ``"failed"``: the printer's interface refused the command.
``accepted`` (the boolean) keeps its old meaning: sent, not refused. It
is never proof the printer acted. ``success`` is ``False`` only for
``"failed"``.
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": "set_temperature"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bed_temp | No | Target bed temperature in Celsius. Pass ``0`` to turn the heater off. Omit or pass ``null`` to leave unchanged. | |
| tool_temp | No | Target hotend temperature in Celsius. Pass ``0`` to turn the heater off. Omit or pass ``null`` to leave unchanged. | |
| printer_name | No | Which printer to heat. Omit for the default printer. The safety ceiling follows the named machine; a printer with no declared model is held to the generic floor — set its model with ``set_printer_model`` (or ``add_safety_profile``) when that floor refuses a temperature. |