list_sensors
List all JMRI sensors with their current active or inactive state to discover available sensors and check 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 | |||