woo_scaffold_cart_block_extension
Generates a WooCommerce Cart Block extension component to add custom content like upsells, notices, or custom fees at specified positions in the block-based cart.
Instructions
Generate a WooCommerce Cart Block extension component for adding custom content to the block-based cart (e.g., upsells, notices, custom fees).
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>",
"extensionName": "<extensionName>",
"extensionSlug": "<extensionSlug>",
"textDomain": "<textDomain>"
},
"name": "woo_scaffold_cart_block_extension"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootNamespace | Yes | Plugin root namespace | |
| extensionName | Yes | Extension name in PascalCase (e.g., "CartUpsell") | |
| extensionSlug | Yes | Extension slug (e.g., "cart-upsell") | |
| textDomain | Yes | Plugin text domain | |
| position | No | Position in cart (default: after-items) |