Design
Genere en lot des codes Code 128, EAN-13, UPC-A, ITF-14, QR Code et Data Matrix depuis CSV ou texte multilignes avec export PNG ZIP ou PDF
Appelez cet outil depuis votre code en trois langages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/barcode-batch-generator' \
-F 'file=@/path/to/csvFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/fr/api/tools/barcode-batch-generator' \
-F 'inputFormat=lines' \
-F 'entriesInput=SKU-1001
SKU-1002
SKU-1003' \
-F 'csvFile=/path/to/file.ext' \
-F 'hasHeaderRow=true' \
-F 'columnIndex=1' \
-F 'columnName=e.g. code' \
-F 'barcodeFormat=qrcode' \
-F 'outputFormat=png-zip' \
-F 'imageWidthPx=320' \
-F 'imageHeightPx=320' \
-F 'showText=true' \
-F 'errorCorrectionLevel=M' \
-F 'pageSize=A4' \
-F 'landscape=false' \
-F 'pdfColumns=2' \
-F 'skipInvalidRows=true'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/barcode-batch-generator| Nom | Type | Requis | Description |
|---|---|---|---|
| inputFormat | select | Non | — |
| entriesInput | textarea | Non | — |
| csvFile | fileupload requis | Non | — |
| hasHeaderRow | checkbox | Non | — |
| columnIndex | number | Non | — |
| columnName | text | Non | — |
| barcodeFormat | select | Non | — |
| outputFormat | select | Non | — |
| imageWidthPx | number | Non | — |
| imageHeightPx | number | Non | — |
| showText | checkbox | Non | — |
| errorCorrectionLevel | select | Non | — |
| pageSize | select | Non | — |
| landscape | checkbox | Non | — |
| pdfColumns | number | Non | — |
| skipInvalidRows | checkbox | Non | — |
Résultat fichier
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-barcode-batch-generator": {
"name": "barcode-batch-generator",
"description": "Genere en lot des codes Code 128, EAN-13, UPC-A, ITF-14, QR Code et Data Matrix depuis CSV ou texte multilignes avec export PNG ZIP ou PDF",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=barcode-batch-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "barcode-batch-generator",
"arguments": {
"inputFormat": "lines",
"entriesInput": "SKU-1001\nSKU-1002\nSKU-1003",
"csvFile": "https://example.com/file.ext",
"hasHeaderRow": true,
"columnIndex": 1,
"columnName": "e.g. code",
"barcodeFormat": "qrcode",
"outputFormat": "png-zip",
"imageWidthPx": 320,
"imageHeightPx": 320,
"showText": true,
"errorCorrectionLevel": "M",
"pageSize": "A4",
"landscape": false,
"pdfColumns": 2,
"skipInvalidRows": true
}
}
}Des questions ou un problème ? Contactez [email protected]