ssh_update_host
Update SSH host fields with optimistic version checks to prevent stale writes; null clears jump-host or private-key paths, and identity changes clear saved login/sudo credentials.
Instructions
Update host fields with optimistic version checking. Null clears a jump host or private-key path. Connection identity changes clear saved login/sudo credentials to prevent reuse on a different endpoint; set credentials again. Existing connections require ssh_reset_connection. Rename preserves the 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": {
"hostId": "<hostId>",
"expectedVersion": "<expectedVersion>",
"patch": "<patch>"
},
"name": "ssh_update_host"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch | Yes | ||
| hostId | Yes | Stable ID from ssh_list_hosts | |
| expectedVersion | Yes | Current host version from ssh_list_hosts; stale writes return HOST_CONFLICT |