WooCommerce: Create product attribute
woocommerce_create_product_attributeCreates a global product attribute for a WooCommerce site so variable products can define variation options such as Size or Color.
Instructions
[UNIFIED] Create a new global product attribute for use in variable products. Attributes define variation options like Size or Color.
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>",
"name": "<name>"
},
"name": "woocommerce_create_product_attribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| site | Yes | ||
| slug | No | ||
| type | No | select | |
| order_by | No | menu_order | |
| has_archives | No |