list_roster
List all locomotives in JMRI's roster with DCC addresses and details to find which address belongs to each locomotive before acquiring a throttle or setting speed.
Instructions
List every locomotive in JMRI's roster: name, DCC address, road, road number, manufacturer, model, owner, last-modified date, roster groups, DCC system, and max speed percent.
Use this to discover what locomotives exist and their DCC addresses
before calling acquire_throttle/set_speed/etc. — this is currently
the only way to find which address belongs to which named loco
(e.g. "start the Autorail" but set_speed needs address=4). Any
field can be empty if unfilled in JMRI — normal, not an error.
"groups": JMRI Roster Groups (most belong to none). "dcc_system":
command station prefix from a "DccSystem" Roster Entry Attribute,
null if unset (JMRI's default station drives it instead) — pass as
acquire_throttle's prefix when set. "dcc_system_name": full name
of the system actually in use, always populated. "max_speed_percent":
roster "Throttle Speed Limit" (1-100, default 100) — set_speed/
set_speed_ramped already scale by this, so 100% requested means
100% of THIS number, not the raw decoder ceiling. No side effects.
Does NOT resolve a name to an address for you — use find_locomotive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||