Read a QR code or barcode
read_barcodeRead QR codes and barcodes from an image. Send base64 or a public URL. Private addresses are refused and the decoded file is capped at 10 MB. Returns each code's text and format. An image with no code returns an empty list.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file": "<file>"
},
"name": "read_barcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The image. Provide url or data. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| codes | Yes | ||
| count | Yes |