generate_typed_qr
Generate a QR code from structured data such as WiFi, vCard, email, phone, SMS, event, EPC, or geo details; returns a base64-encoded image.
Instructions
Generate a QR code from structured data (WiFi, vCard, Email, Phone, SMS, Event, EPC, Geo). Returns a base64-encoded image.
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": {
"type": "<type>",
"fields": "<fields>"
},
"name": "generate_typed_qr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Image size in pixels (e.g. 300) | |
| type | Yes | QR data type | |
| style | No | QR dot style | |
| fields | Yes | Type-specific fields as key-value pairs (e.g. {"ssid":"MyWifi","password":"secret","encryption":"WPA"} for wifi) | |
| format | No | Output image format | |
| frameId | No | Frame template ID | |
| eyeShape | No | QR eye/finder pattern shape | |
| background | No | Background color as hex (e.g. #ffffff) | |
| foreground | No | Foreground color as hex (e.g. #000000) | |
| frameLabel | No | Text label to display on the frame | |
| gradientType | No | Gradient type for foreground | |
| gradientColors | No | Array of hex color strings for gradient |