get_turnout
Retrieve the current state of a model railroad turnout, returning CLOSED or THROWN, along with feedback sensor status.
Instructions
Get the current CLOSED/THROWN state of one turnout.
Args: name: Turnout name (JMRI system name like "IT100", or its user-friendly label like "Layout Turnout A") or an unambiguous fragment of the label. Case-insensitive.
No side effects — this only reads state, it never changes the turnout.
The result includes "has_feedback_sensor" (bool). When false, that turnout has no real position sensor wired up, and a state of INCONSISTENT is its normal/expected steady state — not an anomaly. Do not flag it to the user as a problem in that case; only state="INCONSISTENT" on a turnout where has_feedback_sensor is true is worth calling out as possibly unsettled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |