get_light
Check whether a layout light is on or off by specifying its JMRI system name or user label. Returns the current ON/OFF state of any scenery light.
Instructions
Get the current ON/OFF state of one layout light.
Args: name: Light name (JMRI system name like "IL1", or its user-friendly label like "Depot Lighting") or an unambiguous fragment of the label. Case-insensitive.
This is a layout light (scenery), not a locomotive headlight — for "is the Autorail's headlight on", use get_locomotive_functions instead. No side effects.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "get_light"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |