QRIS ke gambar SVG / QRIS to SVG
qris_to_svgMembuat gambar QR code (SVG) dari teks QRIS yang valid. Renders a valid QRIS payload as an SVG QR code (byte mode, error correction L/M/Q/H, default M). Built-in encoder, no dependencies, offline. Refuses invalid QRIS. Always test-scan the result before printing.
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": {
"qris": "<qris>"
},
"name": "qris_to_svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ecc | No | Error correction level (default M). | M |
| qris | Yes | The QRIS payload text (starts with "000201" and ends with "6304" + 4 hex characters). Paste text, not an image. | |
| margin | No | Quiet zone in modules (4 recommended). | |
| module_px | No | Pixels per module (width/height attributes only; the SVG scales). | |
| dark_color | No | Module colour #rrggbb (default #000000). Keep strong contrast. | |
| light_color | No | Background colour #rrggbb (default #ffffff). |