Upload file
upload_fileUpload a file for a product variant or collection by providing a local file path or base64 content. Duplicate content is detected to avoid re-uploading, and file size is limited to 100 MB.
Instructions
Upload a file (e.g. an image for a variant or collection) via multipart/form-data. Files are deduplicated by content: uploading identical bytes returns the existing file. Max size 100 MB. Provide exactly one source: file_path or content_base64.
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_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | File name to send. Required with content_base64; defaults to the basename of file_path. | |
| file_path | No | Absolute path to the file on the local machine running this MCP server. Mutually exclusive with content_base64. | |
| content_base64 | No | File content as a base64 string. Mutually exclusive with file_path. |