generate_qr
Create a QR code image from any text or URL. Customize size, colors, and margin, and receive SVG output suitable for embedding or printing.
Instructions
Generate a QR code image from text or a URL. Returns SVG with customizable size, colors, and margin.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bg | No | Background color as hex (default: "#ffffff") | |
| size | No | Size in pixels (default: 200, range: 50-1000) | |
| text | Yes | Text or URL to encode in the QR code | |
| color | No | Foreground color as hex (default: "#1a1a2e") | |
| format | No | Output format: "svg" (the only format) | |
| margin | No | Margin/quiet zone size (default: 1, range: 0-10) |