generate_url_qr
Encodes a URL into a scannable QR code image (PNG or SVG) so scanning it opens the link in a browser.
Instructions
Generate a QR code that encodes a URL. When scanned, opens the URL in a browser.
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": {
"url": "<url>"
},
"name": "generate_url_qr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to encode (must include protocol, e.g. https://example.com) | |
| width | No | Image width in pixels (PNG only) | |
| format | No | Output format: base64 PNG or SVG string | png |
| margin | No | Quiet zone margin in modules | |
| backgroundColor | No | Background color (hex, e.g. #ffffff) | #ffffff |
| errorCorrection | No | Error correction level: L(7%), M(15%), Q(25%), H(30%) | M |
| foregroundColor | No | Foreground color (hex, e.g. #000000) | #000000 |