Give the AI agent a products file
upload_products_fileGives a website's AI agent a products file, which replaces the catalog found online (Shopify, WooCommerce). CSV (comma, semicolon or tab) as text in content, or an Excel .xlsx in content_base64; first row = column names (name, price, stock, url, description, sku… in any language). 5 MB and 2,000 products at most. Replaces the previous file; remove: true deletes it. Fails with empty_file when no product is recognized.
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": {
"site_id": "<site_id>"
},
"name": "upload_products_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remove | No | Delete the current products file instead. | |
| content | No | The CSV file's text. | |
| site_id | Yes | The site's id (see list_sites). | |
| filename | No | The file's name, e.g. products.csv. | |
| content_base64 | No | The file's bytes in base64 (for .xlsx). |