Start an image file upload
create_image_uploadMakes a single-use link to send an image file straight to Shipfolio, so it never has to be pasted into a tool call as base64. Use it for any image that is a file on this machine or larger than about 50 KB, in preference to imageBase64: call this, run the returned curl command with your shell, putting the image's path after the @ (or PUT the file's raw bytes to uploadUrl with any HTTP tool; POST works too), then pass uploadId to set_article_cover, add_listing_screenshot or set_listing_logo. The link needs no sign-in, takes one file of at most maxBytes, and expires after 15 minutes (expiresAt); the type is read from the file's bytes (PNG, JPEG, WebP or GIF). Making the link is free; the file counts as one image upload when it arrives, and the image tool doesn't count it again. Needs the write scope. It changes nothing by itself: confirm the change with the user before calling the image tool that uses it.
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": {
"purpose": "<purpose>"
},
"name": "create_image_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purpose | Yes | What the image is for: ArticleCover (set_article_cover), Screenshot (add_listing_screenshot) or Logo (set_listing_logo) | |
| mimeType | No | The file's type, for the curl command's Content-Type: image/png, image/jpeg, image/webp or image/gif. Optional; Shipfolio reads the type from the bytes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| curl | Yes | ||
| maxBytes | Yes | ||
| uploadId | Yes | ||
| expiresAt | Yes | ||
| uploadUrl | Yes |