Generate a QR code (SVG)
qr_codeGenerate SVG QR codes from any text or URL, with adjustable error correction and size. Ready to insert into web pages, presentations, or documents.
Instructions
Encode text or a URL as a QR code and return a crisp, dependency-free SVG you can paste straight into a page, deck or doc.
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 |
|---|---|---|---|
| ecc | No | Error-correction level: L=7%, M=15%, Q=25%, H=30% recoverable. | M |
| size | No | SVG pixel size. | |
| text | Yes | Text or URL to encode. |