QR code generator
qr_codeTurn text or a URL into a crisp QR code as PNG or SVG, with size and error-correction control. Cost: 1 credit per call. Output: a file (image/png | image/svg+xml) returned inline, at most 1 MiB. The QR image
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": "qr_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bg | No | #ffffff | |
| fg | No | #000000 | |
| size | No | Edge length in px (png) | |
| text | Yes | Text or URL to encode | |
| format | No | png | |
| margin | No | Quiet zone in modules | |
| error_correction | No | M |