list_lights
Discover all JMRI layout lights and their current ON/OFF state. Use this to see what lights exist before controlling them, without side effects.
Instructions
List every layout light known to JMRI, with its current ON/OFF state.
These are JMRI light objects wired to the layout/scenery itself
(depot lighting, street lamps, signal lamps, ...) — NOT a
locomotive's headlight (that's F0, via set_function/lights_on on a
DCC address). Use this to discover what lights exist before calling
get_light/set_light, or to answer "what lights are there?". No
side effects.
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_lights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||