Generate packing slips
generate_packing_slipsUse this when the user wants packing slips ("packing slip template", "print packing slips", "etsy packing slip 4x6", "shopify packing slip", "packing slip generator") for their orders. First convert pasted text or an image of orders into order objects (order_number, ship_to, items with sku, name, qty, gift_message), or pass the attached Shopify, Etsy, WooCommerce or Amazon order export. Makes a PDF with one packing slip per order (order number, date, ship-to, items with SKU, quantity and a tick box, notes, gift message) on US Letter, A4 or a 4x6 label, prices hidden unless show_prices, plus a pick list PDF totalled by SKU and CSVs. Long orders continue on a second page; each line is printed and problems are listed. Does not buy postage, print shipping labels or barcodes, or change orders in the store.
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": "generate_packing_slips"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Optional order export: CSV, TSV or Excel .xlsx from Shopify (Orders export), Etsy (Order Items), WooCommerce or Amazon (unshipped orders report), or any sheet with order, ship-to, SKU, item and quantity columns, e.g. orders_export.csv. | |
| sort | No | Order of the slips: none (as given, default), order_number or name. | |
| sheet | No | Excel sheet to read, e.g. Orders. | |
| orders | No | The orders, one slip each. Convert what the user pasted or showed in an image into order objects first, e.g. [{"order_number":"1001","ship_to":{"name":"Jane Smith","address1":"123 Main St","city":"Springfield","state":"IL","zip":"62704"},"items":[{"sku":"MUG-BL","name":"Blue mug","qty":2}],"gift_message":"Happy birthday"}]. Pasted export CSV text with its header row also works. | |
| columns | No | Column mapping when headings are unusual, field to heading, e.g. {"order":"Ref","qty":"Pcs","sku":"Code"}. Fields: order, date, name, address1, address2, city, state, zip, country, item, variant, sku, qty, price, notes, gift, method, location. | |
| message | No | Thank-you line printed at the bottom of each slip, e.g. Thank you for your order. | |
| page_size | No | letter (default, one order per page), a4, or 4x6 for a 4 x 6 in thermal label. | |
| uppercase | No | Ship-to address in capitals without punctuation (USPS style). Default false. | |
| store_name | No | Store name printed at the top of each slip, e.g. Maple & Clay Studio. | |
| show_prices | No | Print unit prices, line totals and an items subtotal, e.g. true. Default false (gift-friendly slips). | |
| from_address | No | Your return address printed next to the ship-to, e.g. "Maple & Clay\n42 Oak Lane\nPortland, OR 97205". | |
| home_country | No | Country you ship from; the country line prints only for orders abroad. Default: from_address's country, else United States. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| units | Yes | ||
| orders | Yes | ||
| source | Yes | ||
| assumed | Yes | ||
| preview | Yes | ||
| problems | Yes | ||
| downloads | Yes | ||
| file_name | Yes | ||
| page_size | Yes | ||
| pick_list | Yes | ||
| sku_lines | Yes | ||
| item_lines | Yes | ||
| slip_pages | Yes | ||
| show_prices | Yes | ||
| from_address | Yes | ||
| preview_count | No | ||
| pick_list_count | No | ||
| orders_continued | Yes | ||
| links_expire_minutes | Yes | ||
| orders_with_problems | Yes |