create_file
Import files from URLs into your Shopify store as assets. Supports images, videos, 3D models, and generic files with optional alt text and duplicate handling.
Instructions
Create a file asset in the store from an external URL or a staged upload URL. Supports images, videos, 3D models, and generic files. Requires write_files access scope.
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": {
"original_source": "<original_source>"
},
"name": "create_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| original_source | Yes | Publicly accessible URL or staged upload URL of the file to import. | |
| alt | No | Alt text for accessibility. | |
| content_type | No | Type of file content. Shopify will infer from URL if omitted. | |
| duplicate_resolution_mode | No | How to handle duplicate filenames. Default: APPEND_UUID. |