Upload your own artwork
upload_designTurn merchant-owned artwork—logos, brand marks, photos—into a design_uuid for create_product or ship_product. Upload PNG, JPEG, WEBP, or SVG by URL, base64, or presigned transfer.
Instructions
Upload artwork the merchant ALREADY OWNS and turn it into a design_uuid usable by create_product / ship_product. This is the way to build products from a client's own files — a logo, a brand mark, a cleared cover, a photograph — instead of generating something new. If a client says their mark must not be redrawn, use this; never regenerate or approximate a mark to work around a missing file.
Three ways to supply the file:
source_url— an https URL the server can fetch. One call, no context cost, full resolution. Use it whenever the file is hosted or reachable by a link that does not require sign-in.image_base64— inline bytes you can actually read. Costs roughly 350k tokens per megabyte of file, so small files only (4MB cap).presigned: true— ONLY if you can make an HTTP PUT yourself (a shell with curl, or code that can call fetch/requests). Returns anupload_urlyou PUT the bytes to, then you call this tool again with the returnedimage_uuidto finish. If you cannot do both steps, do not use it: the reserved design is left behind as a failed tile in the merchant's gallery. An image the user attached in a chat is usually NOT a file you can PUT or base64-encode. If there is no link to it, ask the merchant to upload it at apparelhub.ai/images/gallery (or share a public link) rather than starting an upload you cannot finish. Calling this tool with no file and nopresigned: truereserves nothing and returnsfile_required.
Accepts PNG, JPEG, WEBP and SVG. SVG is the BEST input for a logo or mark: it is rendered server-side at print resolution, so it stays crisp at any size. Two things must be true of the SVG first — text converted to outlines, and any linked image embedded — otherwise the upload is refused with instructions rather than silently losing that part of the artwork. For pixel art, or any hard-edge raster mark that must stay crisp, pass upscale="pixel" so a small file is enlarged without being smoothed.
[#90c8cd]
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": "upload_design"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Display title for the design. Defaults to the filename stem. | |
| upscale | No | How to resample if the file is below the 512px print minimum. "pixel" = nearest-neighbour, keeps pixel art and hard-edge marks crisp. "smooth" = for photographic art. "auto" (default) detects. Pass "pixel" for a client mark that must not be approximated. | |
| filename | No | Original filename. Used for the default title. | |
| presigned | No | Ask for a presigned upload_url instead of supplying the file. Only set this if you can PUT the bytes yourself AND call upload_design again with the image_uuid; otherwise the reserved design is left as a failed tile. | |
| workspace | No | Workspace uuid (agency accounts). | |
| image_uuid | No | Finish a presigned upload: pass the image_uuid from a previous upload_design call after you have PUT the bytes. Also use this to resume polling if processing was still running. | |
| source_url | No | Public https URL of the artwork. The server fetches it. Must not require sign-in. | |
| content_type | No | Declared MIME type. Detected from the file when the bytes are supplied, so it is only needed for the presigned mode (defaults to image/png). Use image/svg+xml to upload vector. | |
| image_base64 | No | Base64-encoded file bytes (a data: URI is accepted). Expensive in context — prefer source_url or the presigned mode. Capped at 4MB decoded. |