Upload a photo for an item
upload_item_imageUpload a local image to set as an item's photo in LighterPack. Accepts JPEG, PNG, or WebP up to 5MB via file path or base64.
Instructions
Uploads a local image file (JPEG/PNG/WebP, 5MB max) to LighterPack and sets it as the item's photo. Provide either filePath (read from disk) or imageBase64 (raw base64-encoded bytes) plus mimeType.
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": {
"itemId": "<itemId>"
},
"name": "upload_item_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | ||
| filePath | No | ||
| mimeType | No | ||
| imageBase64 | No |