barcode
op=read (default): decodes every linear and 2D symbology from a photo or scan — EAN-13/8, UPC-A/E, Code128/39/93, ITF, Codabar, QR, Micro QR, Data Matrix, PDF417, Aztec — returns text, format and the 4 corner points per code found; found:0 if none. op=generate reuses the qr service's generator (same type/format params). Cost €0.001 per code, charged to the API key in Authorization: Bearer. Parameters — op: read (default) | generate; url: image url (op=read); formats: comma list of symbologies to limit the search to, e.g. qrcode,ean13 (default all); data: text to encode (op=generate); type: barcode type (op=generate), see qr service.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "barcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | ||
| url | No | ||
| data | No | ||
| type | No | ||
| formats | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |