Print labels
print_labelsRequires print.org. Creates a PDF only and never prints on a physical printer. Direct print on a Print Station is separate, and only when the tools list_print_stations, print_to_station, and get_station_print_job are available. Print saved items with a print profile from this org. Pass exactly one of item_ids or all_items. all_items prints every row on the sheet (sheet_number, default 1). Duplicate ids in item_ids are ignored; use copies_per_label for repeats. Optional order: barcode, row_order (item_number ascending), sent (item_ids order), sku, or name. When omitted, the saved organization print_order_default is used. If that value is empty, print uses barcode and the response has needs_preference, order_options, and preference_question. Ask the user that question, then call update_print_preferences (items.write). Digit-only barcodes sort numerically (long GTIN safe); mixed values sort alphabetically. Empty sort values print last and add a warning. If barcode order differs from row order, the response includes a note. Ask which profile after listing them. Order quantity is not copies_per_label. Returns one PDF and the barcode string drawn on each label. Prefer download_url, a signed https link on a cloudlabels.io host. Use print_labels when the label count (items times copies_per_label) is 50 or less. Above 50, call start_print_job and poll get_print_job. A profile with a saved label sheet fills that sheet. start_position is optional and 1-based. It must be a whole number from 1 through the number of labels on the sheet. A roll profile ignores start_position and adds warnings.
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": {
"profile_id": "<profile_id>"
},
"name": "print_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | No | ||
| quality | No | ||
| item_ids | No | ||
| all_items | No | ||
| profile_id | Yes | ||
| sheet_number | No | ||
| start_position | No | ||
| copies_per_label | No |