Open
Conversation
Fixes #4 Add functionality to decode QR code images and extract text. * **`operations/qr.ts`**: - Add `decodeQRCode` function to decode QR code images using `jsQR` library. - Export `QRCodeDecodeSchema` for input validation using `zod`. * **`index.ts`**: - Add `decode_qr_code` tool to the list of tools in `ListToolsRequestSchema` handler. - Add a new case for `decode_qr_code` in the `CallToolRequestSchema` handler. - Parse arguments using `QRCodeDecodeSchema` and call `decodeQRCode` function. * **`package.json`**: - Add `jsQR` library as a dependency for QR code decoding. * **`README.md`**: - Document the new `decode_qr_code` tool in the list of tools. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/noboru-i/web-development-toolbox/issues/4?shareId=XXXX-XXXX-XXXX-XXXX).
- Resolved conflicts from monorepo restructuring - Added missing jsqr and pngjs dependencies for QR decoding - Updated server handlers to include decode_qr_code tool - Preserved QR code decoding functionality from the branch
Owner
Author
|
QRコード読み取りライブラリ周りを、上手く利用できていない? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4
Add functionality to decode QR code images and extract text.
operations/qr.ts:decodeQRCodefunction to decode QR code images usingjsQRlibrary.QRCodeDecodeSchemafor input validation usingzod.index.ts:decode_qr_codetool to the list of tools inListToolsRequestSchemahandler.decode_qr_codein theCallToolRequestSchemahandler.QRCodeDecodeSchemaand calldecodeQRCodefunction.package.json:jsQRlibrary as a dependency for QR code decoding.README.md:decode_qr_codetool in the list of tools.For more details, open the Copilot Workspace session.