WooCommerce: Create product variation
woocommerce_create_product_variationCreate a new variation for a variable product by defining attribute combinations with separate pricing and inventory settings.
Instructions
[UNIFIED] Create a new variation for a variable product. Defines a specific combination of attributes with its own pricing and inventory.
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": "<site>",
"product_id": "<product_id>",
"attributes": "<attributes>"
},
"name": "woocommerce_create_product_variation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | ||
| site | Yes | ||
| image | No | ||
| attributes | Yes | ||
| product_id | Yes | ||
| sale_price | No | ||
| description | No | ||
| manage_stock | No | ||
| stock_status | No | instock | |
| regular_price | No | ||
| stock_quantity | No |