Set Item Images
set_item_imagesSet the main product image on EXISTING items by SKU (max 500 per call). Each row names an item (sku) and an absolute http(s) imageUrl on the scheme's default port; the server downloads the image (10 MB cap, must serve image/* from a public host) and sets it as the item's main image, REPLACING any current main image (the previous image stays in the gallery). Unknown SKUs report invalid — create items first with upsert_items, which also accepts imageUrl inline. validateOnly=true dry-runs every row without downloading. Partial success with per-row errors; resubmitting a landed row re-downloads and re-applies, so drop rows that already succeeded. Image downloading for the whole call is time-budgeted: once it is spent, the remaining rows fail with a budget-exceeded error — resubmit them in a smaller batch. A client-pinned credential targets its own client's items; an operator credential on a 3PL tenant passes clientId to name the target client.
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": {
"images": "<images>"
},
"name": "set_item_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| images | Yes | Image rows (max 500). sku and imageUrl are required per row. | |
| clientId | No | Operator (unpinned) credentials on 3PL tenants: the target client id (GUID) the rows belong to — get ids from list_clients. Client-pinned credentials omit this; the credential decides. | |
| validateOnly | No | true = dry-run: validate every row and report would_set/invalid, downloading and writing nothing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| set | No | ||
| rows | No | ||
| total | No | ||
| failed | No | ||
| validateOnly | No |