Save a label file
p21_save_labelSave a label as a .p21.json file for opening in the GUI or printing with the CLI, and return the absolute path.
Instructions
Save a label as a .p21.json file (relative paths are relative to the server's working directory) so the user can open it in the GUI or print it with the CLI. Returns the absolute path.
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": {
"label": "<label>",
"path": "<path>"
},
"name": "p21_save_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Must end in .json | |
| label | Yes | Nelko P21 label. Coordinates are printer dots (203 dpi, ~8 dots/mm) on the design canvas. Landscape 14x40 mm canvas = 284 x 96 dots (x across the label length, y across the 12 mm printable tape width). Canvas width = round(length_mm * 7.1) for other lengths. Output is pure black/white. |