aplusContent_upload_image
Upload one image, as it is, to the A+ media library and get the id an image slot takes.
writeAmazon Seller (SP-API)sp.uploads_2020-11-01
Upload every image of a document first, then put each uploadDestinationId (and its imageCropSpecification) in its slot before validating or creating. Amazon SP-API · createUploadDestinationForResource · POST /uploads/2020-11-01/uploadDestinations/{resource} Gate: approve — interactive: show the change (Amazon's preview first where one exists), wait for an explicit approve; autopilot: only when the seller's own words asked for this change; otherwise ask.
Call it
In an AI client (MCP)
{
"name": "aplusContent_upload_image",
"arguments": {
"store": "myStore-US",
"url": "<url>"
}
}From code (Tool API)
curl -X POST https://api.sellersheetai.com/api/v1/tools/aplusContent_upload_image \
-H "Authorization: Bearer $SELLERSHEET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"store":"myStore-US","url":"<url>"}'Early access — the Tool API is open on request, contact us.
Arguments
| Name | Type | Description |
|---|---|---|
storerequired | string | the store ref `<store>-<CC>` (name-country, e.g. 'myStore-US') — one of get_user_context's store_refs, verbatim. |
urlrequired | string | a public http(s) URL of the image file (PNG or JPEG), e.g. a CDN or a Drive link shared with anyone who has the link. |
Result
Every tool answers {notification, data, human_action}; data carries:
data.uploadDestinationId— the value for the slot's uploadDestinationId. data.width, data.height: the image's size in pixels.data.imageCropSpecification— the full-image crop, ready for the slot; replace it with a crop of the module's ratio when the image has another one.
Gotchas
- The file is sent as it is. Amazon refuses an image over 3 MiB (3145728 bytes) or of another type: HTTP 400 with errors[] {code (EntityTooLarge with proposedSize and maxSizeAllowed, or MEDIA_TYPE), message, url}. A URL that does not answer with an image is NOT_AN_IMAGE, a failed download IMAGE_DOWNLOAD_FAILED with httpStatus, a private or loopback address IMAGE_URL_NOT_ALLOWED.