Shut down, stop or reset a server
lw_server_power_hardPower off or hard reset a server: choose a clean shutdown or a destructive stop/reset that skips the OS shutdown and may lose data; requires write/destructive permissions and confirmation.
Instructions
Take a server down or hard power cycle it (v2 server/power/shutdown, stop or reset). shutdown is a clean OS power off; stop and reset skip the clean shutdown and can lose data. The server stays down after shutdown or stop until started with lw_server_power. Destructive: needs LW_ALLOW_WRITES and LW_ALLOW_DESTRUCTIVE, then a confirmation step.
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>",
"action": "<action>"
},
"name": "lw_server_power_hard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accnt | No | Account number to act on, for users with access to more than one account. Omit for your own account. | |
| action | Yes | shutdown (clean), stop (hard off) or reset (hard power cycle). | |
| 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. | |
| confirm_token | No | Leave empty on the first call to get a preview and a token. Repeat the call with identical parameters plus this token to execute. |
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 |