Get Item Label PDF File Info
machship_get_item_pdf_file_infoRetrieve a consignment item/package label PDF as JSON, including base64 content, fileName, and contentType, with optional A4 formatting.
Instructions
Returns the item/package label PDF as JSON. object.content holds the file as base64, with object.fileName and object.contentType.
Args:
consignmentId (number): Consignment ID
printA4 (boolean, optional): Whether the label is in A4 format
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": {
"consignmentId": "<consignmentId>"
},
"name": "machship_get_item_pdf_file_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| printA4 | No | A4 format flag | |
| consignmentId | Yes | Consignment ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | Validation errors returned by Machship, if any | |
| object | No | Response payload from the Machship API |