generate_qr_code
Create QR codes from text or URLs with customizable error correction, border size, and pixel dimensions. Generates base64-encoded PNG images for easy sharing and storage.
Instructions
Generate a QR code for the given data.
Args: data: The text or URL to encode in the QR code error_correction: Error correction level - "L" (Low ~7%), "M" (Medium ~15%), "Q" (Quartile ~25%), "H" (High ~30%) border: Size of the border (minimum is 4) box_size: Size of each box in pixels (default 10)
Returns: Base64 encoded PNG image of the QR code that can be displayed or saved
Input Schema
Name | Required | Description | Default |
---|---|---|---|
border | No | ||
box_size | No | ||
data | Yes | ||
error_correction | No | M |
Input Schema (JSON Schema)
{
"properties": {
"border": {
"default": 4,
"title": "Border",
"type": "integer"
},
"box_size": {
"default": 10,
"title": "Box Size",
"type": "integer"
},
"data": {
"title": "Data",
"type": "string"
},
"error_correction": {
"default": "M",
"title": "Error Correction",
"type": "string"
}
},
"required": [
"data"
],
"type": "object"
}