generate_qr
Create custom QR codes with styling options and automatic short links for URL tracking and analytics.
Instructions
Generate a styled QR code image with custom colors, logos, dot styles, and corner shapes. Supports PNG and SVG output. Returns base64-encoded image data. When the content is a URL, a tracked short link is created automatically — the QR encodes the short URL for click analytics.
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": {
"content": "<content>"
},
"name": "generate_qr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The data to encode in the QR code (URL, text, vCard, etc.). Max 4096 characters. | |
| format | No | Output image format. Default: png. | |
| template_id | No | Optional template ID to use as base style. Overrides from style param are merged on top. | |
| style | No | QR code styling options |