zpl_preview
Render raw ZPL label code to a PNG image through the Labelixa API for visual inspection, with controls for density, label dimensions, and multi-label index.
Instructions
Render ZPL label code to a PNG image via the Labelixa API. This is a SERVER-SIDE render for inspection — it is not a guarantee of how a specific physical printer will output the label.
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": {
"zpl": "<zpl>"
},
"name": "zpl_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zpl | Yes | Raw ZPL code (^XA ... ^XZ) | |
| dpmm | No | Printer density in dots per mm (6, 8, 12 or 24) | |
| index | No | Which label to render when the stream contains several | |
| width_in | No | Label width in inches (at most 15) | |
| height_in | No | Label height in inches (at most 15) |