Preview a TEPRA label
tepra_previewRender a label as an image to inspect its layout before printing, preventing wasted tape from misaligned content.
Instructions
Render a label and return it as an image without printing. Use this to check the layout before spending tape.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tepra_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qr | No | Payload for a QR code at the left edge. | |
| bold | No | Bold text (default: true). | |
| text | No | Lines of text, stacked top to bottom. Japanese is supported. | |
| align | No | Alignment when the label is longer than its content. | |
| printer | No | Printer IP address. Defaults to the TEPRA_PRINTER_IP env var. | |
| lengthMm | No | Force an exact label length in mm instead of auto-sizing. | |
| marginMm | No | Blank margin at each end, in mm (default: 2). | |
| imagePath | No | Absolute path to a PNG/JPEG to place on the label. | |
| fontFamily | No | CSS font stack, e.g. "Yu Gothic UI". Defaults to a Japanese system stack. | |
| imageBase64 | No | Base64 PNG/JPEG, as an alternative to imagePath. | |
| minLengthMm | No | Pad the label out to at least this length, in mm. | |
| tapeWidthMm | No | Tape width in mm (4/6/9/12/18/24/36). Auto-detected from the printer when omitted. |