generate_qrcode
Generate QR codes as SVG or PNG from any text or URL with local rendering. No network or external tools required.
Instructions
Generate a QR code (二维码) as SVG or PNG from text/URL. Pure local rendering — no qrencode/zbar/system install, no AI, no network. Just call with the text/URL to encode. Multilingual triggers: QRコード · código QR · code QR · QR-Code · QR-код · código QR (ja/es/fr/de/ru/pt).
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": "generate_qrcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dark | No | Foreground color, default #000000 | |
| name | No | Output filename (without extension) | |
| text | Yes | Content to encode (URL or text) | |
| light | No | Background color, default #ffffff | |
| format | No | svg | |
| margin | No | Margin in modules (default 2) | |
| outDir | No | Output directory, default session-dir/output | |
| errorCorrectionLevel | No | M |