generate_wifi_qr
Generate a scannable QR code for WiFi credentials that joins a network automatically when scanned. Supports WPA, WEP, and open networks with PNG or SVG output.
Instructions
Generate a QR code for WiFi network credentials. When scanned, connects to the WiFi network.
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": {
"ssid": "<ssid>",
"encryption": "<encryption>"
},
"name": "generate_wifi_qr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ssid | Yes | WiFi network name | |
| width | No | Image width in pixels (PNG only) | |
| format | No | Output format: base64 PNG or SVG string | png |
| hidden | No | Whether the network is hidden | |
| margin | No | Quiet zone margin in modules | |
| password | No | WiFi password | |
| encryption | Yes | Encryption type | |
| backgroundColor | No | Background color (hex, e.g. #ffffff) | #ffffff |
| errorCorrection | No | Error correction level: L(7%), M(15%), Q(25%), H(30%) | M |
| foregroundColor | No | Foreground color (hex, e.g. #000000) | #000000 |