get_power
Retrieve the current power state (ON/OFF/UNKNOWN/IDLE) of a DCC system. Specify a system name or omit for the default; this read-only operation never changes power.
Instructions
Get the current power state (ON/OFF/UNKNOWN/IDLE) of one DCC system.
Args: system: System name, prefix, or fragment (e.g. "ohara", "O"). Case-insensitive. Omit to use JMRI's default system.
No side effects — this only reads state, it never changes power.
The returned "name" is JMRI's full connection name, often with a parenthetical describing what the system is for (e.g. "zou (test)"). If the user asks what a system is used for rather than its power state, answer from this name.
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": "get_power"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| system | No |