generate_qr_code
Generate custom QR codes. Free Tier: Basic URL/Text PNG. Paid Tier ($0.001 USD via x402): Vector SVG, custom styling (dotStyle, primaryColor, logoUrl), or premium QR types (wifi, vcard, crypto, dbl).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_qr_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The URL or text to encode in the QR code. Optional if using other tab types. | |
| format | No | Output format. 'png' is free. 'svg' vector output requires x402 micropayment ($0.001). | png |
| dblCode | No | Dragon Ball Legends code. Required if activeTab is 'dbl'. Requires x402 micropayment ($0.001). | |
| logoUrl | No | Image URL or base64 data URL to embed in the center of the QR code. Requires x402 micropayment ($0.001). | |
| dotStyle | No | Visual style of QR dots. 'square' is free. Custom styles ('circle', 'hex', 'diamond') require x402 micropayment ($0.001). | square |
| eccLevel | No | H | |
| activeTab | No | QR payload type. Free: 'url', 'text'. Paid via x402: 'wifi', 'vcard', 'email', 'phone', 'sms', 'whatsapp', 'facebook', 'instagram', 'twitter', 'youtube', 'tiktok', 'linktree', 'location', 'paypal', 'dbl', 'crypto', 'spotify', 'linkedin', 'telegram', 'github', 'discord', 'twitch'. | url |
| primaryColor | No | Hex color code, e.g. '#00f0ff'. Custom colors require x402 micropayment ($0.001). |