QR Code
Instructions
This skill produces a scannable QR code embedded inline in the chat.
- Extract the payload from the user's query:
- URL — if the query contains a URL, use it directly.
- WiFi — if the query gives an SSID and password, build the standard
WiFi payload:
WIFI:T:<WPA|WEP|nopass>;S:<ssid>;P:<password>;;. - Contact (vCard) — if the query gives a contact card, build a minimal
VCARD 3.0 payload (
BEGIN:VCARD...). - Plain text — otherwise, encode the text as-is.
- The rendering script handles the encoding (
segnopure-Python). It returns a PNG image encoded as adata:image/png;base64,...URI so no external service is needed and the QR remains available offline. - Present the returned image with a one-sentence caption.
Output Contract
Returns text + image.url via the SkillScriptOutput contract:
text: one-line caption describing what the QR encodes.image.url:data:image/png;base64,...data URI (no external fetch).image.alt: human-readable description for accessibility.
Ressources disponibles
- scripts/render_qr.py — Generates the QR code PNG from the user's content.