Create Upload
create_uploadPrepare a private binary upload. Supply productId from list_products; POST image bytes separately to uploadUrl with the returned headers and credential. No storage is allocated until POST. Reuse an Idempotency-Key for identical bytes/options; GET /api/uploads/{key} recovers a lost response. No base64 or remote image URLs in MCP. Read returned image limits. SDK: /sdk/photo-upload.mjs. Guest checkout needs no sign-in: pass the private guestToken from start_guest_checkout, or use your existing OAuth connection, never both.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crop | No | ||
| productId | No | ||
| guestToken | No | Private guest credential; omit when Authorization Bearer is present. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | ||
| artwork | No | ||
| headers | Yes | ||
| helpUrl | Yes | ||
| uploadUrl | Yes | ||
| maxFileBytes | Yes | ||
| authorization | Yes | ||
| imageHandling | Yes | ||
| maxInputPixels | Yes | ||
| acceptedMimeTypes | Yes | ||
| responseSchemaUrl | Yes | ||
| acceptedExtensions | Yes |