Layout
Layout sets the content column width and the breakpoint ids that Authored `{ bp }` conditions use. Reads need website access. Writes need update_header_footer.
Content width
maxContentWidthPx is an integer from 320 to 2560. The default is 1280. The public site sets --site-max-content-width to that value in pixels.
Breakpoints
Send 2 to 8 breakpoints. Each has a unique id matching ^[a-z][a-z0-9-]*$, a label, and optional minWidth and maxWidth. The first breakpoint starts at 0. Ranges are contiguous: the next minWidth is the previous maxWidth plus 1. Only the last breakpoint omits maxWidth. The default is mobile from 0 to 767 and desktop from 768 with no max.
Breakpoint conditions
Responsive block values are Authored lists on the leaf, such as shell.box.size and layout.direction. A { bp } condition names a breakpoint id. Renaming or removing an id leaves conditions that no longer match a breakpoint.
Read layout settings.
GET /api/v1/{locale}/{websiteId}/layoutReplace layout settings.
PUT /api/v1/{locale}/{websiteId}/layout{
"maxContentWidthPx": 1280,
"breakpoints": [
{ "id": "mobile", "label": "Mobile", "minWidth": 0, "maxWidth": 767 },
{ "id": "desktop", "label": "Desktop", "minWidth": 768 }
]
}MCP: get_theme (section=layout), save_theme (section=layout).