Update WooCommerce Product
wc_update_productUpdate a WooCommerce product by ID, changing only the fields you provide. Unspecified fields remain unchanged.
Instructions
Update an existing WooCommerce product by ID. Only the fields you pass are changed.
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": {
"product_id": "<product_id>"
},
"name": "wc_update_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | ||
| name | No | Product name. | |
| status | No | ||
| virtual | No | ||
| product_id | Yes | Product ID to update. | |
| description | No | ||
| manage_stock | No | ||
| regular_price | No | Regular price as string. | |
| stock_quantity | No | ||
| response_format | No | Output format: 'markdown' for human-readable, 'json' for machine-readable. | markdown |
| short_description | No |