Show server power state
lw_server_power_statusRetrieve a server's cached or live power state by uniq_id, returning power status, status, and any running task ID.
Instructions
Get a server's power state. Default reads the cached status (v2 server/power/status, fast). live=true asks the platform for the current state (v2 server/power/check), which is slower. Returns powerStatus, status and any running task id.
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": {
"uniq_id": "<uniq_id>"
},
"name": "lw_server_power_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | No | True to check the live state instead of the cached one. | |
| accnt | No | Account number to act on, for users with access to more than one account. Omit for your own account. | |
| context | No | Auth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them. | |
| uniq_id | Yes | Six-character asset id (uniq_id), e.g. "ABC123". Get it from lw_asset_list or lw_server_list. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | ||
| status | Yes | ||
| context | No | ||
| preview | No | ||
| summary | Yes | ||
| warnings | No | ||
| next_page | No | ||
| next_step | No | ||
| truncated | No | ||
| expires_at | No | ||
| confirm_token | No |