QR code
qr_createCall 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 | Name for the downloaded file, e.g. acme-code. SVG is returned inline when this is left out; a PNG always comes back as a download link valid for one hour | |
| overwrite | No | Replace a file of the same name already produced in this request (default false) | |
| error_correction | No | L 7%, M 15% (default), Q 25%, H 30% of the code recoverable when damaged |