在 Pi 任務中驗證條碼標籤
在 Pi agent 中於本機解碼 Code 128、EAN-13、UPC-A 與二維條碼測試檔,完整保留數字與前導零。
條碼掃描器會回傳確切的識別碼與條碼格式,讓 Pi agent 能核對標籤而無需猜測數字。
在 Pi agent 中於本機解碼 Code 128、EAN-13、UPC-A 與二維條碼測試檔,完整保留數字與前導零。
宣告於 package.json 的 pi.extensions 底下,簡潔俐落地接通本機 qrscan stdio MCP 伺服器。
透過 pi.skills 從 skills/ 載入,讓識別碼維持原樣字串,完全不呼叫外部商品資料庫。
準備好圖片、複製請求提示詞,並比對回傳的內容。
建立 Code 128 條碼,內容填入 STOCK-4827 並儲存為 barcode-reference.png。
Read barcode-reference.png with Barcode Scanner.
Return the complete identifier as text and its format.
Preserve leading zeros. Do not run external lookups.
If the tool is unavailable or detects nothing, report that
instead of guessing.搭配掃描器後,Pi agent 會回傳確切的識別碼與格式,而非憑空猜測。
barcode-reference.png 的範例結果。
安裝方式、條碼格式、前導零保留、本機隱私與 MIT 授權說明。
執行 pi install git:github.com/qrcode-ai-com/qrcode-barcode-scanner-plugin(或在後方加上 GitHub Releases 的 @<release-tag> 以鎖定特定發佈版本)。
Pi 會從 qrcode-barcode-scanner-plugin 讀取 package.json(pi.skills 與 pi.extensions),載入 skills/qrcode-barcode-scanner 與 pi/extension.js,以註冊本機 qrscan MCP 伺服器。
支援 16 種條碼格式:Code 128、Code 39、Code 93、EAN-13(含 ISBN)、EAN-8、UPC-A、UPC-E、ITF、Codabar、Telepen、GS1 DataBar、GS1 DataBar Expanded、Data Matrix、PDF417、Aztec 與 MaxiCode,另外也支援 QR Code。
會。content.text 一律以原樣字串回傳以確保前導零完整保留,且 EAN-13 報告也會解析 14 位數的 GS1 GTIN。解碼過程不會查詢任何外部零售、定價或 ISBN 資料庫。
僅在您主動啟用後才支援。qrscan 預設只提供 scan_image(base64 位元組);請在伺服器環境變數中設定 QRSCAN_MCP_ALLOWED_DIRECTORIES,即可針對允許的本機資料夾啟用 scan_file。
執行 pi remove git:github.com/qrcode-ai-com/qrcode-barcode-scanner-plugin 即可移除。
解碼作業完全在本機 Node.js 22.19 以上或 24 以上版本執行(Pi 會將對話文字傳送至您的 LLM)。目前的外掛、技能、MCP 伺服器與引擎版本皆免費提供並採用 MIT 授權,與 QR Code AI 的付費方案各自獨立。
檢視官方 Pi agent 設定來源與採用 MIT 授權的掃描器配接器規範。
閱讀通訊協定指南、切換至適用於 QR Code 的 Pi agent 整合,或瀏覽所有條碼整合方案。
在 Pi agent 中解碼 QR Code、Micro QR 與 rMQR 圖片,取得確切網址與品質評分。
探索 Pi agent QR Code 掃描器