Upload item image
upload_item_imageUpload one product photo onto one item, or onto variant rows that should share it. The server compresses the file once to WebP, longest side 512px, and stores that same URL on the sheet photo column for every id. Pass image_base64 with item_id, or item_ids (max 200) for sibling rows such as colors and sizes. You can pass both. Optional column is the photo header name. Visible photo columns are chosen before hidden ones. Every id must belong to this organization and the same sheet. If any id is missing, nothing is written. A barcode column is not used for images. Replacing a photo leaves the stored file in place when any row still uses that URL. Do not invent image URLs. image_base64 and the JSON around it must fit in the 1 MB MCP request body. Base64 is about one third larger than the file, so the image itself must be about 0.75 MB or smaller. A larger request is rejected with "MCP request is too large" and this tool does not run.
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": {
"image_base64": "<image_base64>"
},
"name": "upload_item_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| column | No | ||
| item_id | No | ||
| item_ids | No | ||
| file_name | No | ||
| image_base64 | Yes | ||
| sheet_number | No |