lights_on
Turn on a locomotive's headlight by its DCC address. Use for voice commands to light the engine's front light without specifying a function number.
Instructions
Turn on a locomotive's headlight(s): shortcut for set_function(address, 0, True).
F0 is almost universally the headlight function across DCC decoders (this is a very strong convention, not a JMRI/protocol guarantee), so this is the tool to reach for on a plain "turn the lights on" voice request without asking the user for a function number. Same auto-acquire and no-op-safe behavior as set_function.
This is the locomotive's own headlight, NOT layout/scenery lighting (depot, street lamps, signals) — for those, use set_light instead.
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": {
"address": "<address>"
},
"name": "lights_on"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes |