list_blocks
List all JMRI layout blocks with their occupancy state and metadata. Use this to discover available blocks and check current occupancy at the layout-section level.
Instructions
List every layout block known to JMRI, with its current OCCUPIED/UNOCCUPIED state.
A block is a named section of track JMRI uses for occupancy detection and signaling logic — richer than a plain sensor: each block also reports which sensor drives its occupancy, and (on layouts with RFID/reporter-based detection, not just simple occupancy) a "value" identifying what's occupying it. Also includes static layout metadata set in PanelPro's block editor: "length" (track length), "curvature", "speed" (a named speed restriction, e.g. "Normal"/"Fifty" — vocabulary is layout-defined), and "comment" (free text). Read-only, no side effects. Use this to discover what blocks exist before calling get_block, or to answer "what blocks are there?"/"is anything occupied right now?" at the layout-section level (as opposed to a single sensor's raw state).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||