get_sensor
Retrieve the current active/inactive state of a sensor to determine block occupancy or other real-world conditions.
Instructions
Get the current ACTIVE/INACTIVE state of one sensor.
Args: name: Sensor name (JMRI system name like "RS22", or its user-friendly label like "Montagne B") or an unambiguous fragment of the label. Case-insensitive.
Use this to answer "is block X occupied?" or similar real-world state questions ("is the clock running?" for the ISCLOCKRUNNING sensor JMRI always has). Read-only — there is no set_sensor tool, since a sensor reflects hardware JMRI detects, not a command this project should issue. No side effects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |