add_host
Saves a new SSH server in ShellVibe after the user approves it, using only hostname and port; the user supplies credentials separately. If the host is already saved, returns its host ID instead.
Instructions
Saves a new SSH server in ShellVibe, after the user approves it in a window that shows the address you give. You give only the address: never a password, key or other credential. The user attaches their own credentials in that window. If a host with the same hostname and port is already saved, nothing is added and you get its hostId (status "exists"); a label another host already has is refused. A saved host is not granted to you: call request_host_access for it before open_session. Its host key is not trusted yet, so the first open_session may answer HOST_KEY_UNTRUSTED until the user connects once from ShellVibe. Use this only when the user asked you to work on a server that list_hosts does not have.
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": {
"label": "<label>",
"hostname": "<hostname>"
},
"name": "add_host"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | The SSH port. Defaults to 22. | |
| label | Yes | A short name the user will recognize, e.g. "web-1". | |
| hostname | Yes | The DNS name or IP address to connect to. | |
| username | No | The user to log in as, if known. It is used over the user name of the identity the user attaches. |