Skip to content

uc-apx slots

Resolves the page’s appearance.pageTemplate and returns the per-template slot allowlist (from cmd/template_slots.go) plus the slots actually in use on the page. LLM agents picking a --slot for create region <kind> should call this first; the local validator’s invalidSlot check uses the same data.

Unknown templates produce known=false and an empty allowlist — fall back to uc-apx validate --official to confirm any slot you pick.

uc-apx slots [flags]
FlagTypeDefaultDescription
--pagestringTarget page (numeric ID, alias, or name) [required]
FlagTypeDefaultDescription
--app-dirstring.Path to the APEX application directory
--json-prettyOutput in pretty-printed JSON (human-readable) instead of minified JSON
--toonOutput in TOON format (human-readable, token-efficient) instead of JSON

Running against examples/brookstrut:

Terminal window
uc-apx --app-dir examples/brookstrut slots --page 1
pageId: "1"
template: /standard
known: true
allowedSlots[20]: body,breadcrumbBar,fullWidthContent,footer,afterLogo,topNavigation,dialogsDrawersAndPopups,afterNavigationBar,beforeNavigationBar,banner,afterHeader,beforeFooter,REGION_POSITION_01,REGION_POSITION_02,REGION_POSITION_03,REGION_POSITION_04,REGION_POSITION_05,REGION_POSITION_06,REGION_POSITION_07,REGION_POSITION_08
usedSlots[2]: body,breadcrumbBar
note: ""
JSON output
{
"pageId": "1",
"template": "/standard",
"known": true,
"allowedSlots": [
"body",
"breadcrumbBar",
"fullWidthContent",
"footer",
"afterLogo",
"topNavigation",
"dialogsDrawersAndPopups",
"afterNavigationBar",
"beforeNavigationBar",
"banner",
"afterHeader",
"beforeFooter",
"REGION_POSITION_01",
"REGION_POSITION_02",
"REGION_POSITION_03",
"REGION_POSITION_04",
"REGION_POSITION_05",
"REGION_POSITION_06",
"REGION_POSITION_07",
"REGION_POSITION_08"
],
"usedSlots": [
"body",
"breadcrumbBar"
]
}