set_signal
Set a signal mast's aspect and verify the actual observed aspect, reporting if the change wasn't confirmed.
Instructions
Set a signal mast's aspect, and report the aspect actually observed.
Args: name: Mast name (system name or userName) or unambiguous fragment. Case-insensitive. aspect: e.g. "Hp0"/"Hp1"/"Hp2" — signal-system-dependent, IS case-sensitive, NOT validated locally (rejection: "error"). Call list_signal_aspects(name) FIRST if unsure of spelling/case, e.g. when named by effect ("turn it red") — don't guess. "unlit"/"off" darkens the mast — prefer signal_off(name).
Writes to JMRI. "confirmed" false means re-read still doesn't match — report honestly.
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>",
"aspect": "<aspect>"
},
"name": "set_signal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| aspect | Yes |