Get a server console address
lw_server_consoleRetrieves a server's remote console address and access token, with options for secure SPICE or SPICE proxy connections so you can connect to the console.
Instructions
Get the remote console address for a server (v2 server/consoleaddress): hostname, ip, port, type and an access token. The token grants console access, so treat it as a secret and do not repeat it. secure_spice and spice_prx pick the SPICE connection style. Returns credentials: needs LW_ALLOW_SECRETS.
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_console"
}
}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. | |
| 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. | |
| spice_prx | No | Request the SPICE proxy address. | |
| secure_spice | No | Request a TLS SPICE connection. |
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 |