Reimage a server (wipes it)
lw_server_reimageReinstall a server from a template, erasing all existing data. Use it to reset or rebuild a server after confirming backups, since the operation is destructive.
Instructions
Reinstall a server from a template (v2 server/reimage). This erases all data on the server. Pick a template with lw_template_list. force=true skips platform safety checks. Confirm backups first. 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>",
"template_name": "<template_name>"
},
"name": "lw_server_reimage"
}
}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. | |
| force | No | Skip platform safety checks. Default false. | |
| 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. | |
| template_name | Yes | Template to install, from lw_template_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 |