Apply kit block
apply_kit_blockAdd a section: stamp a library block (slug) or clone a page section already on this site (sourceNodeId) — exactly one. contentOverrides sets the final copy in the same call, keyed by the block's lib_* ids. target "header" / "footer" replaces the site header/footer with a nav/footer block; heroes are page sections. Guide: get_style_reference({ topic: "blocks" }).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Site id. Pass it on every call. | |
| slug | No | Block slug from search_blocks. Not with sourceNodeId. | |
| pageId | No | Target page (default page_home). | |
| target | No | page (default) | header (replaces hdr_root) | footer (replaces ftr_root). | |
| position | No | Index among the page's sections (default: end). | |
| sourceNodeId | No | Page section on this site to deep-clone with fresh ids. Page target only. | |
| propOverrides | No | JSON object: displayName → { className, replaceClassName?, props }. className merges unless replaceClassName: true. Arrays for repeated names. | |
| contentOverrides | No | JSON object: node displayName → { text, url, alt, src, … }. Repeated names take an array, consumed in DFS order, e.g. { "Heading": { "text": "Our Services" }, "Title": [{ "text": "SEO" }, { "text": "PPC" }] }. | |
| sectionContainerId | No | Existing empty section to fill (skeleton fills). Omit otherwise. |