woo_scaffold_widget
Generate a WooCommerce widget class skeleton including form(), update(), and widget() methods. Provide namespace, class name, widget ID, and title.
Instructions
Generate a WooCommerce/WordPress Widget class with form(), update(), and widget() methods.
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": {
"rootNamespace": "<rootNamespace>",
"className": "<className>",
"widgetId": "<widgetId>",
"title": "<title>"
},
"name": "woo_scaffold_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootNamespace | Yes | Plugin root namespace | |
| className | Yes | Widget class name (e.g., "RecentProductsWidget") | |
| widgetId | Yes | Widget ID (e.g., "recent_products_custom") | |
| title | Yes | Widget title |