Barcode scanner
read_barcodeRead every barcode in a PNG, JPEG or WebP image, given as base64 (or a data URL), a public https URL, or an attached file. At most 2 MB and 4000 by 4000 pixels. Returns text, format, corner positions and GS1 product number, expiry and lot when present.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "https://apitoolcalls.com/barcode-scanner/samples/ean13.png"
},
"name": "read_barcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public https URL of a PNG, JPEG or WebP image; 2 MB maximum. | |
| file | No | An image file the user attached (OpenAI Apps SDK file parameter). | |
| image | No | Base64 PNG/JPEG/WebP or image data URL; 2 MB decoded maximum. Give one of image, url or file. |