list_sensors
Lists all known JMRI sensors with their current ACTIVE/INACTIVE state, enabling discovery of layout elements and occupancy status.
Instructions
List every sensor known to JMRI, with its current ACTIVE/INACTIVE state.
Sensors report real-world state detected by JMRI's own hardware inputs — most commonly block occupancy ("is a train on block X?"), but also things like turnout motor feedback or a clock-running flag. Read-only, no side effects. Use this to discover what sensors exist before calling get_sensor, or to answer "what sensors are there?"/"is anything occupied right now?".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||