Create a QR code
create_qr_codeFree. Creates a QR code for a URL and returns a hosted PNG (imageUrl), optional SVG markup, and for "direct" codes a pageUrl your user can open to view and download it. Use variant "redirect" for a code that counts scans and, with Pro, can be pointed somewhere else later. Without an API key the result has a claimUrl: give it to your user so the code is added to their QR codes (it works for 30 days). Unsafe or non-public links are refused.
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": "create_qr_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Where the QR code should send people. https:// is added if no scheme is given. | |
| format | No | "png" (default) returns a hosted PNG. "svg" also returns the SVG markup. | |
| variant | No | "direct" (default) encodes the URL itself. "redirect" encodes a scan link that counts scans and can be changed later with Pro. |