Create a local barcode
abox_barcode_generateGenerates verified SVG or PNG barcodes from a local payload file for Code 128, EAN/UPC, ITF, and Code 39, computing or validating retail check digits and refusing invalid inputs.
Instructions
Read exact payload text from a local file and create a verified SVG or PNG Code 128, EAN-13, UPC-A, EAN-8, ITF-14, ITF or Code 39 barcode. Retail check digits are computed or validated; invalid supplied digits are refused. Source-defined quiet zones and optional human-readable labels. Verification capacity can limit long inputs. PNG requires a local browser. Payload and completed digits are not returned.
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": {
"input_path": "<input_path>",
"output_path": "<output_path>"
},
"name": "abox_barcode_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| scale | No | ||
| format | No | svg | |
| height | No | ||
| symbology | No | code128 | |
| background | No | #ffffff | |
| foreground | No | #000000 | |
| input_path | Yes | Absolute path of the UTF-8 payload file. Text is kept exact, including any final newline. | |
| output_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| code39_check | No |