qr_code
Generate QR codes from text or URLs, returning an inline SVG and data URI. Options include size, quiet-zone margin, and error-correction level.
Instructions
Generate a QR code for any text or URL. Returns an inline SVG plus a data URI, with selectable size, quiet-zone margin and error-correction level.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Pixel size of each QR module/cell in the SVG (default 6). | |
| text | Yes | Text or URL to encode in the QR code. | |
| margin | No | Quiet-zone margin around the code, in cells (default 4). | |
| ec_level | No | Error-correction level: L(7%), M(15%), Q(25%), H(30%). Default M. |