# Show web VNC link

> The link that opens the VNC console of one vServer in the browser - without a password.

- Effect: Write - Changes the account. Agents ask first.
- Idempotent: yes
- Stability: beta
- MCP tool: `manitu_vserver_vnc_web_get` on https://mcp.manitu.de/mcp
- REST: `POST https://api.manitu.de/v1/vserver/vnc/web/get`
- Needs: `service_vserver`
- Page: /reference/vserver/vnc/web/get/

**Changes the account. Agents say what will happen and wait for an explicit yes before calling it.**

## MCP tool

`manitu_vserver_vnc_web_get`

### Description for the model

Returns the link that opens the VNC console of a virtual server (vServer) in the browser (manitu's web VNC), by its vserver_id from manitu_vserver_list - the screen of the server, e.g. when SSH no longer answers. The link opens the console WITHOUT a password: give it to the customer only, as a link to click, and do not repeat it elsewhere. It holds until VNC is switched off and on again. url is null while VNC is off (vnc_enabled false) - switch it on first with manitu_vserver_vnc_enable. Ask the customer for an explicit yes first.

### Arguments

- `vserver_id` (integer | string, required) - The vserver_id from manitu_vserver_list - never guess one. (pattern `"^[1-9][0-9]*$"`; minimum `1`)

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "manitu_vserver_vnc_web_get",
    "arguments": {
      "vserver_id": 12345
    }
  }
}
```

## REST

`POST https://api.manitu.de/v1/vserver/vnc/web/get`

### Authentication

One of `X-API-Key`, `Authorization: Bearer …` - never more than one in a request.

### Request body

JSON; unknown fields are refused.

- `vserver_id` (integer | string, required) - The vserver_id from manitu_vserver_list - never guess one. (pattern `"^[1-9][0-9]*$"`; minimum `1`)

### Response

In `data`; the rest of the body as on every call.

- `vnc_enabled` (boolean, required) - The VNC console is switched on; if not, url is null.
- `url` (string | null, required) - Opens the console in the browser, without a password - a secret, for the customer only. Null while VNC is off, or in the few minutes after switching it on.

### Statuses

- `200` Success.
- `400` The request does not match the declared input schema.
- `401` No credential was presented, or it was not recognised.
- `403` The credential is not permitted to use this operation.
- `500` The server failed. Nothing about the request was wrong. Whether a change took effect is not known - check before trying it again.
- `503` The channel this operation forwards through is unavailable.

### Example

```sh
curl -X POST 'https://api.manitu.de/v1/vserver/vnc/web/get' \
  -H 'X-API-Key: $API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"vserver_id":12345}'
```

## Example result

```json
{
  "vnc_enabled": true,
  "url": "https://www.example.com/"
}
```
