request_host_access
Request access to multiple SSH hosts in one approval window, with per-host modes and separate granted/denied results so you can plan around what you did not get.
Instructions
Requests access to one or more hosts in a single approval window. The user can approve some hosts and deny others, and can change the mode per host, so the response reports "granted" and "denied" separately — plan around what you did not get rather than assuming the whole batch succeeded. A grant below the mode you asked for carries "requestedMode" and a "reason": "max_mode" (the host allows no more), "user_lowered", or, when you asked to raise a grant you already hold, "user_denied", "timeout" or "cancelled" with the held grant kept. Do not re-ask an upgrade the user denied; work within the mode you have or tell the user. Call this once with everything you expect to need for the task at hand: open_session refuses to open an approval window on its own, so a host missing from this call means a HOST_ACCESS_REQUIRED error later.
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": {
"hostIds": "<hostIds>",
"reason": "<reason>"
},
"name": "request_host_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | A short, human-readable reason for the request. Shown to the user verbatim in the approval window, e.g. "Investigating disk usage on the web tier". | |
| hostIds | Yes | The opaque hostId values (from list_hosts or describe_host) to request access to. | |
| requestedMode | No | Access mode to request for every host in this call. Never granted above a host's own maxMode (see list_hosts), and the user can still lower it per host in the approval window. Omit to ask for each host's maxMode. |