Add a section
add_sectionAdd a complete, hand-fixture-quality section to a page from a FLAT description — no node-tree authoring. Pick a kind, pass page_slug + the copy fields (eyebrow, heading, body, CTAs) and, for list-based kinds, an items[] array of flat cards/rows. The tool builds a correct section > container > stack > [...] subtree (theme tokens, Lucide icons, responsive grids, real spacing, every text/CTA independently editable) and splices it into the page, saved as one draft. Kinds & use-when: hero (page-opening headline+CTAs); features (icon/title/body card grid); content (long-form block); cta (centered band CTA); gallery (image grid); testimonials (quote cards); stats (count-up numbers); pricing (tier cards, highlight one); faq (Q&A list); logo-strip ('trusted by' logos); pull-quote (centered editorial quote); team-grid (people cards); split-image-text (image + copy split); process-steps (numbered steps); feature-split (copy + bullet list + image); newsletter (inline email signup band); comparison (with-us vs without); metrics-band (stats on accent band); banner-cta (full-width accent CTA); contact-form (copy + name/email/message form). Use this — not patch_fixture — to populate a page or add a section in-editor. For surgical edits to existing nodes use patch_nodes; for bespoke structure use insert_nodes (claude.ai only).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Supporting paragraph (hero subtitle / content body / cta body). | |
| kind | Yes | Section archetype. Use when: • hero — page-opening eyebrow + big headline + CTAs; `layout` makes it split (photo beside) or full-bleed (photo behind). • features — heading + icon/title/body card grid (items[]: icon,title,body). • content — heading + long-form body (single column). • cta — centered heading + body + buttons on a muted band. • gallery — heading + image grid (items[]: image_url, title=alt). • testimonials — quote cards (items[]: body=quote, title=name, meta=role, image_url=avatar). • stats — row of big count-up numbers (items[]: value, label). • pricing — 2-3 tier cards (items[]: title, price, period, body, cta_label, cta_href, featured). • faq — two-column Q&A (items[]: title=question, body=answer). • logo-strip — quiet 'trusted by' row of logos (items[]: image_url). • pull-quote — centered editorial quote (body=quote, eyebrow=attribution). • team-grid — people cards (items[]: image_url, title=name, meta=role, body=bio). • split-image-text — image one side, copy + CTAs the other (image_url or items[0].image_url). • process-steps — numbered steps (items[]: title, body, icon). • feature-split — copy + icon-bullet list one side, image the other (items[]: icon,title,body). • newsletter — heading + pitch + inline email signup form on a band. • comparison — two columns, 'with us' (items[]: body/title) vs 'without' (items[]: meta). • metrics-band — stats on a full-width accent band (items[]: value, label). • banner-cta — full-width accent band, centered heading + inverted CTAs. • contact-form — copy one side, stacked name/email/message form the other. | |
| name | No | What the section is, in the owner's words ('About us', 'Why choose us', 'Reviews'). Shown as the section's name in the editor, and how later tools recognise it. Defaults to the kind ('Split', 'Features'). | |
| items | No | Repeated flat cards/rows — meaning depends on `kind` (feature cards, gallery images, testimonials, stats, pricing tiers, FAQ pairs, logos, team members, process steps, comparison rows, metrics). Up to 12. | |
| layout | No | kind=hero only — how the hero is arranged. 'centered' (default): text-only, centered. 'split': headline + buttons one side, image_url photo the other. 'full-bleed': image_url photo fills the section under a dark scrim with white text. 'split' and 'full-bleed' need image_url; without one the hero is centered. | |
| eyebrow | No | Small label above the heading (hero/features). | |
| heading | No | Section heading / hero headline. | |
| site_id | Yes | ||
| position | No | Where on the page to add it. Default 'end'. | |
| image_url | No | Single image URL — the photo for a split / full-bleed hero, or for image-led kinds. | |
| page_slug | Yes | Slug of the page to add the section to, e.g. '/' or '/about'. Must be an existing page. | |
| primary_cta_href | No | Primary button href (defaults to '#'). | |
| primary_cta_label | No | Primary button label (hero/cta). | |
| secondary_cta_href | No | Secondary button href. | |
| secondary_cta_label | No | Secondary button label (hero/cta). |