Register a generated component
register_componentRegister HTML sections as editable components in Neural Draft admin, receiving a component ID and translation keys to enable CMS editing.
Instructions
Register an HTML section as an editable component in the customer's Neural Draft admin. Call this for EVERY section you generate (hero, features, pricing, footer, etc.). The HTML should follow the editable-HTML conventions (read conventions://editable-html first). Returns the component_id (preserve in code as a comment) and the translation keys that were created.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | Full HTML for the section, including data-translate / data-image-key attributes. | |
| intent | Yes | What this section is for, e.g. 'marketing_hero', 'pricing_grid', 'testimonials'. Free-form but lowercase_snake_case is recommended. | |
| position | No | 0-based display order on the page. Omit to append at the end. | |
| page_slug | No | Slug of the page this section belongs to (e.g. 'home', 'about', 'pricing'). |