Barcode Generate
barcode_generateGenerate a 1D barcode as SVG (plus base64 data URI and the raw module pattern): Code 128 (any ASCII, automatic A / B / C subset switching for the shortest symbol), GS1-128 shipping / logistics labels from "(01)…(17)…(10)…" application identifiers (FNC1 separators, SSCC / GTIN check digits verified), EAN-13, EAN-8, UPC-A and ITF-14 (check digit computed when omitted, verified when given) and Code 39 (optional mod-43 check). Options: module width, bar height, quiet zone, human-readable text, colours. For product labels, shipping cartons, inventory and tickets. Price: $0.002 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/barcode-generate
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": {
"data": "<data>"
},
"name": "barcode_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bg | No | #ffffff | |
| fg | No | #000000 | |
| data | Yes | Content to encode (digits for EAN / UPC / ITF) | |
| text | No | Print the human-readable text under the bars | |
| type | No | code128 | |
| quiet | No | Quiet zone each side (modules) | |
| scale | No | Pixels per module | |
| height | No | Bar height (px) | |
| checksum | No | Code 39: append the mod-43 check character |