Barcode Scanner
v1.2.0Scan and generate barcodes and QR codes.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
decode_image Decode barcode/QR code
Decode barcodes and QR codes from a base64-encoded image. Returns all codes found. Supports QR, EAN-13, EAN-8, UPC-A, UPC-E, Code 128, Code 39, Code 93, ITF, Codabar, and PDF 417. Handles noisy real-world photos by trying multiple preprocessing approaches.
| Parameter | Type | Description |
|---|---|---|
image * | string | Base64-encoded image data (PNG, JPEG, etc.) |
format_hint | string | Expected barcode format. If omitted, all formats are tried. |
generate_qr Generate QR code
Generate a QR code image from text or a URL. Returns a PNG image.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text or URL to encode in the QR code |
error_correction | string | Error correction level: L (7%), M (15%), Q (25%), H (30%) |
scale | integer | Scaling factor (default: 3) |
generate_barcode Generate barcode
Generate a barcode image in various formats. Returns a PNG image. Supported formats: code128, code39, code93, ean13, ean8, upca, upce, itf14, interleaved2of5, isbn, issn, ismn, datamatrix, pdf417, azteccode, gs1-128, pharmacode, codabar, msi, plessey, postnet, onecode, royalmail, code11, code49.
| Parameter | Type | Description |
|---|---|---|
format * | string | Barcode format to generate |
text * | string | Data to encode in the barcode |
height | number | Bar height in mm (default: 10, ignored for 2D formats) |
include_text | boolean | Show human-readable text below barcode (default: true) |
scale | integer | Scaling factor (default: 3) |