reconfigure_connection
Swaps the active console connection to another host, optionally persists it to .env, and verifies the candidate before committing so an invalid host leaves the current session intact.
Instructions
Swap the active console connection and (optionally) persist to .env.
Atomic swap: rebuilds the SessionManager under the manager lock so in-flight
tool calls either complete on the old manager or fail with ConnectionError
(operator-recoverable). With ``verify=True`` (default), a fresh client is
opened against the candidate host and ``ListVar`` is executed before any
swap; failure aborts the call and leaves the previous connection intact.
Args:
host: New console host (IPv4 or hostname).
port: Telnet port (default 30000).
user: Console user.
password: Console password.
persist: When True, also write GMA_HOST/GMA_PORT/GMA_USER/GMA_PASSWORD to
.env so the next server start uses them (default False: this run only).
verify: When True, run a SAFE_READ probe before committing the swap.
With False the reply says ``verified: false``. To just free the
console, use disconnect_console instead of pointing at a dummy host.
Returns:
JSON envelope: ``{success, previous_host, new_host, verified, persisted_to,
note, warning, error}``.
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": {
"host": "<host>"
},
"name": "reconfigure_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | No | ||
| user | No | administrator | |
| verify | No | ||
| persist | No | ||
| password | No | admin |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |