QR code
qr_createConverts text or a URL into a QR code as inline SVG or a sized PNG file, returning version and module grid details for verification.
Instructions
Call this tool to turn text or a URL into a QR code: SVG inline, or a PNG at a pixel size to out_path (Pro). Returns version, module grid and payload size. Free: 20 codes a month on this server.
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_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | PNG width in pixels, 32 to 4000 (default 300). SVG scales without it | |
| text | Yes | The text or URL the code carries | |
| format | No | svg (default, free) or png (Pro) | |
| margin | No | Quiet zone in modules, default 4, which is what the QR standard requires | |
| out_path | No | Where to write the file. SVG is returned inline when this is left out; PNG always needs it | |
| overwrite | No | Replace out_path if it already exists (default false) | |
| error_correction | No | L 7%, M 15% (default), Q 25%, H 30% of the code recoverable when damaged |