Get storefront context
get_storefront_contextThe exact data a theme renders with (the StorefrontData Liquid objects are built from): the business (localized, brand site applied), every active menu with items, primary menu id, loyalty/ordering flags, the stamp-card program and its resolved style — plus theme_data (the site document) and live_theme. Use it to preview or test theme code locally.
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": {
"business_id": "<business_id>"
},
"name": "get_storefront_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | No | Defaults to the business's default locale | |
| business_id | Yes |