compile_permanent_qr_asset
Compiles permanent static QR codes for URL, Wi-Fi, vCard, email, phone, or text into vector SVG and optional 300-DPI PNG with no third-party redirect dependencies.
Instructions
Compiles a permanent static ISO/IEC 18004 QR code (direct URL, Wi-Fi WPA, vCard 3.0, mailto, tel, or text) into a crisp vector SVG and optional 300-DPI binary PNG with zero third-party redirect dependencies.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "compile_permanent_qr_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Payload schema to compile ("url", "text", "wifi", "vcard", "mailto", or "tel"; defaults to "url"). | |
| mask | No | Optional explicit ISO/IEC 18004 mask pattern (0..7); omit for automatic N1..N4 minimum-penalty selection. | |
| wifi | No | Structured Wi-Fi parameters when kind="wifi". | |
| vcard | No | Structured vCard 3.0 contact fields when kind="vcard". | |
| bgColor | No | Background hex color (defaults to "#FFFFFF"). | |
| ecLevel | No | Error correction level (defaults to "H" when logoText is set, else "M"). | |
| fgColor | No | Module hex color (defaults to "#141821"). | |
| payload | No | Direct URL, text, email, or phone number (used when kind is "url", "text", "mailto", or "tel"). | |
| logoText | No | Optional 1–4 character center monogram rendered inside a Reed-Solomon safe cutout. | |
| logoAreaPct | No | Target center cutout area percentage when logoText is provided (defaults to 12). | |
| outputPngPath | No | Optional local filesystem path where the 300-DPI binary .png file should be written. | |
| outputSvgPath | No | Optional local filesystem path where the compiled vector .svg file should be written. | |
| stripTracking | No | When true (default for kind="url"), strips utm_*, fbclid, gclid, and spm tracking clutter before encoding. | |
| returnPngBase64 | No | When true, includes the 300-DPI binary PNG encoded as Base64 in the JSON response. |