emergency_stop
Triggers an immediate stop on one or all 3D printers during genuine safety emergencies, sending the stop command each printer accepts rather than a graceful cancel.
Instructions
Trigger an emergency stop on one or all printers.
Sends the strongest stop each printer accepts: Moonraker's emergency-stop
endpoint; ``M112`` on OctoPrint, Duet and USB-serial printers; a cancel
plus ``M112`` on Elegoo; a job cancel on Prusa Link, which has no raw
G-code endpoint; and on Bambu the print-stop command, a heater cut and
``M112``. Creality printers use whichever of these their connection is.
Unlike ``cancel_print``, this is not meant to allow a graceful cooldown.
Only the Bambu stop is read back: its ``success`` means the printer
reported the job ended. On every other printer ``success`` means the
stop command was delivered, not that anything was observed. ``success``
is False for any printer whose stop failed or could not be confirmed;
when stopping all printers, ``not_confirmed_stopped`` lists each one with
the reason. Tell the user to stop those at the machine; calling this tool
again for them is safe.
Use only in genuine safety emergencies (thermal runaway, collision,
spaghetti failure threatening the hotend, etc.).
WARNING: After an emergency stop the printer typically requires a
power cycle or firmware restart before it can print again.
Args:
printer_name: Specific printer to stop. If None, stops ALL printers.
reason: Reason code, one of ``user_request`` (default),
``thermal_runaway``, ``collision_detected``, ``material_jam``,
``power_anomaly``, ``software_fault``, ``interlock_breach``,
``agent_request``; any other value is refused.
source: Trigger source label for audit context.
note: Optional operator note.
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": "emergency_stop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional operator note. | |
| reason | No | Reason code, one of ``user_request`` (default), ``thermal_runaway``, ``collision_detected``, ``material_jam``, ``power_anomaly``, ``software_fault``, ``interlock_breach``, ``agent_request``; any other value is refused. Default: "user_request". | |
| source | No | Trigger source label for audit context. Default: "mcp". | |
| printer_name | No | Specific printer to stop. If None, stops ALL printers. |