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]| Flag | Type | Default | Description |
|---|---|---|---|
--page | string | Target page (numeric ID, alias, or name) [required] |
Global Flags
Section titled “Global Flags”| Flag | Type | Default | Description |
|---|---|---|---|
--app-dir | string | . | Path to the APEX application directory |
--json-pretty | Output in pretty-printed JSON (human-readable) instead of minified JSON | ||
--toon | Output in TOON format (human-readable, token-efficient) instead of JSON |
Example Output
Section titled “Example Output”Running against examples/brookstrut:
uc-apx --app-dir examples/brookstrut slots --page 1pageId: "1"template: /standardknown: trueallowedSlots[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_08usedSlots[2]: body,breadcrumbBarnote: ""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" ]}