This skill empowers the OpenClaw agent to generate and save QR code images locally.
qrcode Python library with Pillow (PIL) support.
qrcode.png.
qrcode is missing, the agent should first attempt pip install qrcode[pil].
When the user requests a QR code, execute a Python one-liner to perform the generation.
python3 -c "import qrcode; img = qrcode.QRCode(version=1, box_size=10, border=5); img.add_data('USER_TEXT_HERE'); img.make(fit=True); img.make_image(fill_color='black', back_color='white').save('FILE_NAME.png')"
共 1 个版本