在 Hermes 任務中核對二維碼圖片
讓 Hermes 透過 scripts/scan.mjs 掃描本機二維碼檔案,原樣引述解碼網址而非憑像素猜測。
二維碼掃描器會返回準確的網址或文字,讓 Hermes 核對連結、驗證素材或重複執行檢查。
讓 Hermes 透過 scripts/scan.mjs 掃描本機二維碼檔案,原樣引述解碼網址而非憑像素猜測。
scripts/scan.mjs 偵測到結果時返回 0、有效空報告返回 1、發生錯誤時返回 2,清楚區分異常與空掃描。
Hermes 採用可攜式技能路徑;若另一主機直接呼叫 MCP 工具,請檢視 MCP 伺服器規格。
準備測試圖片、複製以下請求,並比對工具返回的解碼內容。
製作文字二維碼,內容填入 https://qrcode-ai.com/ 並儲存為 qr-reference.png。
Read qr-reference.png with QR Code Scanner.
Return its encoded content and format as data.
Do not open the URL. If the tool is unavailable or
detects nothing, report that instead of guessing.透過掃描器,Hermes 會返回準確的編碼內容與格式,而非憑像素猜測。
qr-reference.png 的示範解碼結果。
安裝方式、圖片輸入、不受信任資料安全守則、疑難排解及 MIT 授權。
執行 hermes skills install qrcode-ai-com/qrcode-barcode-scanner-rust/skills/qrcode-barcode-scanner。無需帳戶,Hermes 會將 SKILL.md、README.md、LICENSE、scripts/scan.mjs 及 scripts/test.mjs 複製至 <HERMES_HOME>/skills/qrcode-barcode-scanner。
不會。請按照 SKILL.md 指引文件 的說明,將 @qrcode-ai-com/qrcode-barcode-scanner 另外安裝至項目本機的 .qrcode-barcode-scanner-runtime 資料夾(切勿安裝於技能資料夾內)。
Hermes 的直接 Markdown 網址安裝器只會擷取 SKILL.md 並略過 scripts/scan.mjs。請透過 hermes skills install 配合 GitHub 目錄路徑安裝,確保全部五個檔案齊全保留。
不可以。Hermes 的 GitHub 目錄安裝形式會跟隨程式碼庫的預設分支。如需鎖定特定版本,請從 GitHub Releases 下載附帶校驗碼的技能壓縮檔,解壓至 <HERMES_HOME>/skills/qrcode-barcode-scanner。執行 hermes skills search qrcode-barcode-scanner 亦可搜尋到 ClawHub 上的同一項目。
可以,完整五檔案安裝無需加上 --force 即可通過 Hermes 的安全掃描。scripts/scan.mjs 會輸出 JSON 並以 0(偵測成功)、1(有效空報告)或 2(發生錯誤)作為結束狀態碼;若 trace.budget_exhausted 為 true,請加上 --budget-ms 0 重新掃描。
不會。SKILL.md 明確指示 Hermes 將解碼內容嚴格視為不受信任的資料並原樣引述,絕不自動開啟連結或執行二維碼內的文字指令。
執行 hermes skills uninstall qrcode-barcode-scanner 即可移除。解碼完全於本機透過 Node.js 22 或以上版本執行(上限 10 MiB、4,096 px、16 MP;Hermes 會將對話內容傳送至您設定的 LLM)。現有技能及引擎版本均為免費並採用 MIT 授權。
檢視官方 Hermes 設定來源及 MIT 掃描器轉接器規格。
閱讀通訊協定指南、切換至 Hermes 條碼掃描方案,或瀏覽所有二維碼整合方案。