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?".
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_sensors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||