barcode.generate
Generate a barcode or QR code image from a URL or text, choosing QR, Code 128, or EAN-13 format. Returns raw image bytes for direct use.
Instructions
Generate a barcode or QR code as an image. Format defaults to qr; supported: qr, code128, ean13. Returns raw image bytes (base64 in MCP transport).
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 |
|---|---|---|---|
| data | Yes | Encoded payload, e.g. { type: "url", url: "https://..." } or { type: "text", text: "..." }. | |
| format | No | qr |