generate_qr_code
Create styled QR codes from text or URLs with custom colors, dot styles, gradients, and frames; returns a base64-encoded image.
Instructions
Generate a styled QR code from text or URL. 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": {
"data": "<data>"
},
"name": "generate_qr_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The text or URL to encode in the QR code | |
| size | No | Image size in pixels (e.g. 300) | |
| style | No | QR dot style | |
| format | No | Output image format | |
| frameId | No | Frame template ID (use list_frames to see available frames) | |
| 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 | |
| gradientAngle | No | Gradient angle in degrees (for linear gradient) | |
| gradientColors | No | Array of hex color strings for gradient |