zpl_validate
Lint ZPL and return machine-readable pass/fail diagnostics with line, column, code, and severity to catch unknown commands, range errors, and layout overflow before preview; pass real label dimensions.
Instructions
Pass/fail lint for ZPL: machine-readable diagnostics with line/column, code and severity (unknown commands, parameter range errors, layout overflow). Fast; run it before zpl_preview whenever you generate or edit ZPL. For a human-readable report with a score use explain_zpl instead. Pass the real label size — checks depend on it.
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_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zpl | Yes | Raw ZPL code | |
| dpmm | No | Printer density in dots per mm (6, 8, 12 or 24) | |
| width_in | No | Label width in inches (at most 15) | |
| height_in | No | Label height in inches (at most 15) |