Generate a QR code
generate_qrMake one static QR code for a link or plain text, as a PNG image and/or SVG markup, with the same rules as gookit.co/qr-code-generator. The content goes straight into the code: no redirect, no tracking, no expiry. Up to 250 bytes of UTF-8; a 1024 px PNG needs content under 100 bytes. One code per call.
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": {
"content": "<content>"
},
"name": "generate_qr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Approximate PNG width and height in px. 1024 only for content under 100 bytes; SVG scales to any size. | |
| color | No | Colour of the dark modules, as #rrggbb. The background is white. | #000000 |
| format | No | png | |
| content | Yes | A link or plain text, up to 250 bytes as UTF-8. | |
| content_type | No | url: checked as a link; https:// is added when there is no scheme. text: encoded as is. | url |
| error_correction | No | L 7%, M 15%, Q 25%, H 30% of the code can be damaged and still scan. Higher makes a denser code. | M |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| png | No | ||
| svg | No | ||
| note | No | ||
| color | Yes | ||
| modules | Yes | Modules per side, without the quiet zone. | |
| payload | Yes | Exactly what the QR code encodes. | |
| next_step | No | One line naming the Gookit product for the next step, such as printing labels. Not part of the result. | |
| contrast_warning | No | ||
| error_correction | Yes |