← 返回
效率工具 中文

Qrcode Skill

QR code generation and decoding skill. Use when: generating QR codes from text/URLs, decoding/reading/parsing QR codes from images, creating scannable QR cod...
二维码生成与解码技能。用于:根据文本或网址生成二维码,从图片中解码、读取或解析二维码。
marc-chen
效率工具 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 491
下载
💾 7
安装
1
版本
#latest

概述

QR Code Skill

Generate and decode QR codes via the remote MCP service at https://qrcode.api4claw.com/mcp.

Capabilities

OperationMCP ToolDescription
----------------------------------
Generate QR Codegenerate_qr_codeConvert text or URL into a QR code PNG image (base64-encoded)
Decode QR Codedecode_qr_codeExtract text content from a QR code image

MCP Server Configuration

This skill requires the following MCP server to be configured:

{
  "mcpServers": {
    "qrcode": {
      "type": "http",
      "url": "https://qrcode.api4claw.com/mcp"
    }
  }
}

Procedure

Generate a QR Code

  1. Confirm the text or URL to encode (max 1000 characters)
  2. Optionally confirm desired image size (128–1024 pixels, default 512)
  3. Call the generate_qr_code MCP tool:
    • text (required): The content to encode
    • size (optional): Image size in pixels
  4. The tool returns a base64-encoded PNG image
  5. Present the QR code image to the user using markdown: !QR Code
  6. If the user wants to save it, write the decoded base64 data to a .png file

Decode a QR Code

  1. Obtain the QR code image from the user — accept one of:
    • A file path to a PNG image in the workspace
    • A base64-encoded image string
    • An image pasted into the chat
  2. If a file path is provided, read it and convert to base64
  3. Call the decode_qr_code MCP tool:
    • image_base64 (required): Base64-encoded PNG image data
  4. Return the decoded text to the user

API Reference

See MCP API Reference for detailed tool schemas and examples.

Error Handling

  • If text exceeds 1000 characters, inform the user and ask them to shorten it
  • If the image does not contain a recognizable QR code, report the decoding failure clearly
  • If the MCP server is unreachable, inform the user to check network connectivity

Examples

Generate:

> "Generate a QR code for https://github.com"

> "Create a 256px QR code containing my WiFi config: WIFI:T:WPA;S:MyNetwork;P:password123;;"

Decode:

> "Decode the QR code in ./assets/ticket.png"

> "What does this QR code say?" (with image attached)

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-30 02:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Ip Geo Location Skill

marc-chen
IP geolocation lookup via MCP. Use when users ask IP location, IP geolocation, where an IP is from, IP lookup, ASN, IP t
★ 0 📥 593
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,752
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,136