Generate a QR code
generate_qr_codeGenerate static QR codes from links or text up to 800 bytes. Returns PNG images and SVG markup, with custom colors and error correction.
Instructions
Make a static QR code for a link or text (up to 800 bytes). Returns a PNG image and the SVG markup. Static codes never expire.
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": {
"text": "<text>"
},
"name": "generate_qr_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Link or text to encode | |
| background | No | Six-digit hex color for the background | #ffffff |
| foreground | No | Six-digit hex color for the modules | #000000 |
| errorCorrection | No | M |