preview_label
Render a label image from text, QR code, border, font, alignment, and size settings without printing, returning the picture and preview ID for confirmation.
Instructions
Draw a text label and return a picture of it, and a preview_id, without printing.
text: label text; use \n for a new line (two lines fit comfortably, three is tiny). length_mm: label length along the tape; default is the loaded die-cut label length. font: sans-bold (default), sans, condensed-bold, condensed, serif or mono. size: font height in dots (8 dots per mm, the tape is 96 dots high); default fits the text. align: left, center or right. qr: if set, a QR code holding this text/URL goes at the left end. border: draw a rounded border. invert: white text on black.
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": {
"text": "<text>"
},
"name": "preview_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qr | No | ||
| font | No | sans-bold | |
| size | No | ||
| text | Yes | ||
| align | No | center | |
| border | No | ||
| invert | No | ||
| length_mm | No |