Upload Attachments
machship_upload_attachmentsAttach documents to existing Machship consignments by uploading one or more Base64-encoded files with optional attachment type IDs.
Instructions
Uploads one or more attachments to Machship.
Args:
attachments (array): Array of attachment objects. Each object should contain:
consignmentId (number): Consignment to attach to
fileName (string): File name with extension
fileBase64 (string): Base64-encoded file content
attachmentTypeId (number, optional): Type of attachment
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": {
"attachments": "<attachments>"
},
"name": "machship_upload_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachments | Yes | Attachments to upload |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | Validation errors returned by Machship, if any | |
| object | No | Response payload from the Machship API |