woo_scaffold_block_integration
Generate a standalone PHP integration class for WooCommerce blocks. Use to create the integration layer without scaffolding full checkout or cart block extensions.
Instructions
Generate a standalone WooCommerce Blocks IntegrationInterface class. Use when you need the PHP integration layer without scaffolding the full checkout/cart block extension.
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>",
"integrationName": "<integrationName>",
"integrationSlug": "<integrationSlug>",
"textDomain": "<textDomain>"
},
"name": "woo_scaffold_block_integration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootNamespace | Yes | Plugin root namespace | |
| integrationName | Yes | Integration name in PascalCase (e.g., "ShippingTracker") | |
| integrationSlug | Yes | Integration slug (e.g., "shipping-tracker") | |
| textDomain | Yes | Plugin text domain | |
| scriptData | No | JSON-encodable data to pass to frontend (key:value pairs, e.g., "apiUrl:/api/track,nonce:wp_nonce") |