Preview ZPL labels
preview_zplRender up to 2 unique labels as PNG images to check how they look. No API key needed (rate limited); no quota used.
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": "preview_zpl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zpl | Yes | ZPL code with one or more ^XA … ^XZ label blocks. | |
| labelSize | No | Label size in inches (width x height) or mm: 2x1, 2x4, 4x2, 4x6 (default, shipping labels), 4x8, 50x80mm, 80x50mm. |