wp_update_product
Update WooCommerce product details while automatically creating a snapshot before changes, enabling rollback if needed.
Instructions
Update a WooCommerce product (creates snapshot before update)
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": {
"id": "<id>"
},
"name": "wp_update_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| sku | No | ||
| name | No | ||
| slug | No | ||
| status | No | ||
| featured | No | ||
| sale_price | No | ||
| description | No | ||
| manage_stock | No | ||
| stock_status | No | ||
| regular_price | No | ||
| stock_quantity | No | ||
| short_description | No |