🤖
二维码生成器
Generate QR codes from text, URLs, or images. Use when users ask to 'generate QR code', 'create QR', or 'make QR code for'. Supports text content, URLs, and...
安全通过
⚙️脚本
技能说明
name: qrcode-generator description: "Generate QR codes from text, URLs, or images. Use when users ask to 'generate QR code', 'create QR', or 'make QR code for'. Supports text content, URLs, and local images (automatically compressed)." version: 2.0.0 author: bowen nan license: MIT permissions: file read (specified image paths), file write (temp directory)
QR Code Generator
Generate QR codes from text, URLs, or local images. Perfect for sharing links, contact information, or small images via scannable codes.
Features
- ✅ Generate QR codes from text
- ✅ Generate QR codes from URLs
- ✅ Generate QR codes from local images (auto-compressed)
- ✅ Customizable QR code size and colors
- ✅ Returns image path for easy sharing
Installation
pip install qrcode[pil] pillow
Usage Examples
Basic Usage
from agent import handle_call
# Generate QR for URL
result = handle_call({"content": "https://openclaw.ai"})
# Generate QR for text
result = handle_call({"content": "Hello OpenClaw"})
# Generate QR from image
result = handle_call({"image": "/path/to/image.jpg"})
Command Line
# Install dependencies first
pip install qrcode[pil] pillow
# Run the example
python example.py
Parameters
content(string): Text or URL to encodeimage(string): Full path to local image file
Returns
image_path: Path to generated QR code imageerror: Error message if failedmessage: Informational message
Notes
- Images larger than 10MB will be rejected
- Large images are automatically compressed for QR encoding
- For best results with images, use URLs instead of local files
如何使用「二维码生成器」?
- 打开小龙虾AI(Web 或 iOS App)
- 点击上方「立即使用」按钮,或在对话框中输入任务描述
- 小龙虾AI 会自动匹配并调用「二维码生成器」技能完成任务
- 结果即时呈现,支持继续对话优化