shopify_metafields_safe_reimport
Re-import previously exported Shopify metafields while preserving values changed since export, preventing overwrites during updates.
Instructions
Use this when you need to re-import previously exported Shopify metafields without clobbering values changed since export.
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": "shopify_metafields_safe_reimport"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | The spreadsheet file, handed off by a host that fills in the OpenAI file-parameter convention (openai/fileParams) from an uploaded or attached file. The server downloads download_url once, server-side; never a local sandbox path. | |
| options | No | Reserved for future producer options. | |
| file_b64 | No | Base64-encoded CSV or XLSX metafields sheet in row mode: Owner Type, Owner ID, Owner Handle, Owner Parent Handle, Variant SKU, Namespace, Key, Type, Value and an optional Command column — the shape a Shopify metafields export hands back. Send exactly one file source: file_b64 (this field), file_url, file_handle, or file_text together with file_name. | |
| file_url | No | https URL of the spreadsheet file (e.g. a shared Google Drive, Google Sheets, Dropbox, OneDrive or S3 link; must be viewable by anyone with the link). The server downloads it directly. Provide this OR file_handle. | |
| filename | No | Original filename (optional; used in ledger prose). | |
| file_name | No | File name with its extension (.csv, .tsv or .json), used with file_text. | |
| file_text | No | Use only for a small CSV, TSV or JSON file whose full text you already have. Practical limit about 2,000 cells or 40 KB (the server hard cap is 256 KB); above that use file_url, or xlsx_upload_link and file_handle. Requires file_name. Never encode or retype a binary file by hand. Provide this OR file_url OR file_handle. | |
| file_handle | No | Handle returned by xlsx_upload_link, once the user has uploaded the spreadsheet file on that page. Use this when the user attached the file in chat or has no link. Provide this OR file_url. | |
| file_sha256 | No | Hex SHA-256 of the exact file_text UTF-8 text. Optional; checked when given. |