hac_storefront_autofix
Fix SAP Composable Storefront headless readiness by injecting BaseSite URL patterns, permitting CORS origins, verifying OAuth2 credentials, and flushing Region Cache.
Instructions
One-click automated repair for Composable Storefront (Spartacus) headless readiness issues:
Injects matching frontend origin regex into BaseSite.urlPatterns
Dynamically permits frontend origin in CORS (corsfilter.commercewebservices.allowedOrigins)
Verifies OAuth2 client credentials
Flushes Region Cache for real-time frontend routing
Args: site_id: Target BaseSite UID (e.g. 'powertools-spa') storefront_url: Frontend URL Origin (e.g. 'http://localhost:4200' or 'https://localhost:4200') lang: Output language ('zh' or 'en')
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "hac_storefront_autofix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | zh | |
| site_id | No | powertools-spa | |
| storefront_url | No | http://localhost:4200 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |