Convert ZPL DPI
convert_zpl_dpiRescale ZPL between printer resolutions (203/300/600 DPI): coordinates, fonts, barcode module width and label size are scaled. Embedded ^GF/~DG image data is NOT scaled; the response says so instead of silently passing it through.
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>",
"source_dpi": "<source_dpi>",
"target_dpi": "<target_dpi>"
},
"name": "convert_zpl_dpi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zpl | Yes | Raw ZPL code | |
| source_dpi | Yes | Resolution the ZPL was written for, in DPI (not dpmm: 203 DPI = 8 dpmm). | |
| target_dpi | Yes | Resolution to rescale to, in DPI. Equal to source_dpi means no scaling. |