ebay_attach_media_to_inventory_item
Attach local images/video to an eBay inventory item, preserving other data and not publishing offers. Appends or replaces media; failed uploads leave the item unchanged unless partial updates are allowed.
Instructions
Upload local pictures and/or a video and attach them to an existing inventory item: reads the item, uploads every file in order, then rewrites only product.imageUrls and product.videoIds (appending by default, replacing with replaceExisting). Everything else on the item is preserved and no offer is published. If any upload fails the item is left untouched and the per-file results are returned in the error, unless allowPartial is true.
Local file access is opt-in: the file must sit inside a directory listed in EBAY_MCP_MEDIA_DIRS (or under EBAY_MCP_MEDIA_ROOT, which also anchors media:// references). Symlinks are resolved before the check.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | Yes | SKU of the existing inventory item to attach media to | |
| imagePaths | No | Image files in listing order (appended to product.imageUrls unless replaceExisting) | |
| videoPaths | No | Video files (appended to product.videoIds unless replaceExisting) | |
| allowPartial | No | Update the item with the uploads that succeeded even if some failed (default false: any failure leaves the item untouched) | |
| replaceExisting | No | Replace the item's current imageUrls/videoIds instead of appending (default: append) | |
| waitForProcessingSeconds | No | Seconds to wait for eBay to finish processing a video before returning (default 120). A video still PROCESSING can be checked later with ebay_get_video |