Generate a static QR code
generate_qr_codeEncode text or URLs into local static QR codes as PNG images or SVG markup; no dynamic or trackable codes, accounts, or API keys required.
Instructions
Encode text or a URL as a local static QR image (PNG) or SVG markup. Does not create a dynamic or trackable code.
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 | Text or URL to encode, max 2000 characters | |
| size | No | Pixel size 128-2048, default 512 | |
| format | No | png (default) or svg | |
| background | No | Background color as #RRGGBB, default #ffffff | |
| foreground | No | Module color as #RRGGBB, default #0a0a0a | |
| error_correction | No | QR error correction L, M (default), Q, or H |