upload_and_register_photo
Upload and register a small JPEG, PNG, WebP, or GIF through the durable private-media pipeline. The MCP decodes the data URI, reserves the exact bytes, PUTs with every signed required header, waits for malware scanning/publication, and returns the canonical library row. The MCP transport allows about 180KB decoded; use request_photo_upload for anything larger. Reuse clientUploadId when retrying the same photo.
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": {
"base64DataUri": "<base64DataUri>",
"proAccessToken": "<proAccessToken>"
},
"name": "upload_and_register_photo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| orderIndex | No | ||
| showOnSocial | No | ||
| base64DataUri | Yes | Canonical data:image/<jpeg|png|webp|gif>;base64,<bytes> URI. | |
| showOnWebsite | No | Whether the item shows in the public storefront gallery. Omit it when the upload is for a social post: on a storefront with Presence the server then follows the owner's setting 'Add photos and videos you post to your storefront gallery', which is off unless the owner turned it on (a storefront without Presence shows the item). Pass true only when the owner asked for this item on their storefront. Pass false to keep it out. | |
| clientUploadId | No | Required idempotency key. Generate it before the request and reuse it only when retrying the exact same file. | |
| proAccessToken | Yes | The proAccessToken printed by confirm_pro_signup or renew_pro_access. It names the pro's storefront for this call and is valid for 24 hours. |