emergency_stop
Immediately stop a locomotive using JMRI's decoder e-stop for safety-critical situations (derailment risk, imminent collision). Use only when an abrupt halt is needed, not for routine stops.
Instructions
Emergency-stop a locomotive immediately (JMRI's decoder e-stop command).
Args: address: DCC address. Auto-acquires the throttle if needed.
Use ONLY for safety-critical stops: derailment risk, imminent
collision, or any situation needing an immediate halt rather than
smooth deceleration. This is JMRI's actual decoder e-stop (speed
-1.0 on the wire, distinct from a normal speed command) — cuts
power abruptly, rougher on the mechanism, so don't use as a
synonym for routine stop.
Returns stopped: true once confirmed. Safe to call repeatedly:
a redundant e-stop is a silent no-op on JMRI's side, and a local
cache (kept fresh from JMRI's broadcasts from any client) reports
correct status instead of hanging.
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": {
"address": "<address>"
},
"name": "emergency_stop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes |