create_barcode
Create a barcode or QR code image (PNG) from input text. Choose from formats like QR, Code 128, Data Matrix, EAN-13, optionally hide the label, and get the file path.
Instructions
Create a standalone barcode or QR code image (PNG) using the PDF4me Create Barcode API. Pass the text to encode and barcodeType (e.g. qrCode, code128, dataMatrix, ean13, upcA). hideText hides the human-readable label. Saves the file and returns the path.
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": {
"text": "<text>"
},
"name": "create_barcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| hide_text | No | ||
| output_dir | No | ||
| barcode_type | No | qrCode | |
| output_file_name | No |