generate_qr_code
Create custom-styled QR codes from URLs or text, generating base64-encoded SVG images with multiple visual design options for saving or display.
Instructions
Generate a QR code with custom styling. Returns base64-encoded SVG image data that can be saved or displayed. Supports multiple visual styles.
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": {
"url": "<url>"
},
"name": "generate_qr_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL or text content to encode in the QR code | |
| style | No | Visual style preset for the QR code. Default: slate-ember | |
| size | No | QR code dimensions in pixels. Default: 768. Range: 256-2048 |