Label Preview
labelPreview a thermal print layout by passing its URL-encoded JSON configuration in the query, and return a PNG image for ChatGPT display and validation.
Instructions
Label Preview. Preview a thermal label via GET. Pass the same label object as a URL-encoded JSON string in query. Inside that JSON, text items use content and size (1-10), not text or fontSize. Prefer format=png for ChatGPT. Credit cost: 3 credits per call.
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": {
"query": "<query>"
},
"name": "label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Full label config as URL-encoded JSON. Must include width and elements. Text items use content and size (1-10), not text or fontSize. | |
| share | No | If true, persist the result and return share URLs instead of an image. Leave false to get the image. Default: false. | |
| fields | No | Comma-separated list of fields to keep in the response, with dot notation for nested fields (e.g. name,location.city). Does not change the credit cost. | |
| format | No | Use png so ChatGPT can display the image. svg is for download or infinite scale. Allowed values: svg, png. Default: "svg". |