wc_update_product
Update WooCommerce product details such as name, price, stock status, and description by product ID through the WordPress REST API.
Instructions
Update a WooCommerce product
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": "wc_update_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Product ID | |
| name | No | ||
| status | No | ||
| sale_price | No | ||
| description | No | ||
| stock_status | No | ||
| regular_price | No |