Print label
print_labelSend ZPL to a physical printer through the account's Labelixa DirectPrint agent. Requires an API key whose plan includes printing and a printer from printer_list (or a printer group name). The job is QUEUED, not printed: the response says whether the device is mapped by an agent and when the agent last connected; check print_status for delivery. Always show the user a zpl_preview before printing.
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": "print_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zpl | Yes | Raw ZPL code | |
| copies | No | Number of copies (default 1) | |
| device_id | No | Printer id from printer_list | |
| printer_group | No | Printer group name, instead of device_id | |
| idempotency_key | No | Optional key; a retry with the same key returns the first job instead of printing again |