set_layout_lights
Turn every JMRI layout light (depot, street, signal) on or off in one call. Server-side looping; a failed light does not halt the operation.
Instructions
Turn EVERY layout light ON or OFF at once (depot, street, signal lamps — JMRI Light objects).
Args: turn_on: True to turn every layout light ON, False to turn every layout light OFF.
These are JMRI light objects wired to the layout/scenery itself
— NOT a locomotive's own headlight/cabin/rear-light functions.
Call for a lighting request that does NOT name a locomotive
("turn on all the lights", "éteins toutes les lumières" with no
loco mentioned). If the request DOES name a locomotive ("all of
the Autorail's lights"), use set_loco_lights or
set_all_locos_lights instead — never this tool for that case.
Never loop set_light yourself for "every light"/"toutes les lumières" — this loops server-side in one call over every light JMRI reports.
Returns {"succeeded": [...], "failed": [...]}, each entry shaped like set_light's own return value plus "name". One light failing doesn't stop the rest (catch-and-continue).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| turn_on | Yes |