create_global_section
Build a reusable global section once, then embed it into page sources so headers, footers, or shared blocks render across the entire site. Preview changes with dry-run before committing atomically.
Instructions
Create a reusable global section (Header / Footer / shared block) the way the builder does: persists a global_section record AND embeds the same section node into page sources so it actually renders across the site (header → top of every page, footer → bottom). Build the section first with new_section (give it a real bg/padding + logo/menu/links), then pass it here. Two-step safety: dry_run=true (default) previews which pages change; dry_run=false performs the atomic save.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name in the editor (e.g. 'Header', 'Footer') | |
| type | Yes | header = top chrome (logo/nav/cart), footer = bottom chrome, section = reusable content block | |
| dry_run | No | Preview which pages would change (true) or perform the atomic save (false). | |
| section | No | A section node from new_section (object or JSON string) — the content of the header/footer. | |
| page_ids | No | Pages to embed into. Omit to apply to ALL pages of the site (typical for header/footer). |