wc_update_catalog_display
Updates only a WooCommerce catalog display setting through its native Customizer save path. Ask the user for confirmation before calling with confirm=true. Uses the native WooCommerce Customizer setting using local WordPress authentication; no WooCommerce REST API keys are required.
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_id": "<site_id>",
"name": "<name>",
"value": "<value>",
"confirm": "<confirm>"
},
"name": "wc_update_catalog_display"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The shop page or product category archive display setting. | |
| value | Yes | Empty string shows products directly; subcategories shows categories; both shows both. | |
| confirm | Yes | Must be true only after the user explicitly confirms this WooCommerce mutation. | |
| site_id | Yes | The connected site's id returned by list_sites. Call list_sites first; do not use a URL or WordPress post ID. |