Action to perform. One per call. READ actions (no side effects): "MODULES": list every module on the page draft. Each entry includes the module's field values, its layout position (sectionId, rowIndex, parentCellName when it lives inside a nested column, and cellWidth/cellX on the 12-column grid), and ownership flags (overrideable, globalOwned, globalPartialPath, themePartialOwned). Positions are populated even on a freshly created template page, before any edit. Capture a module's position here BEFORE you REMOVE or MOVE it so you can restore or reposition it precisely. Check ownership before REMOVE/MOVE: true global partials (header/footer) and global widgets are refused, but modules inside theme dnd_partial sections are removable and movable. "MODULE_TYPES": list available module types for this page's theme (call before INSERT). "MODULE_DEF": full field schema for a module type (requires modulePath). The response also includes the curated guide in moduleGuide when one exists, so a separate MODULE_GUIDE call is usually unnecessary. "MODULE_STYLES": read the layout styles (padding, margin, background, visibility) for a module (requires moduleId). "MODULE_GUIDE": (rarely needed, MODULE_DEF already returns the same guide inline) curated markdown for the modulePath covering required fields, common traps, and a minimal INSERT body. Errors if no guide exists; check MODULE_TYPES.hasGuide first. "REVISIONS": list recent page revisions for undo. "TEMPLATES": list landing page templates available in the portal (contentId not required). "FORMS": list forms available in the portal for embedding on THIS LANDING PAGE via the @hubspot/form module (contentId not required). This is the landing-page tool's own forms lookup and it is complete: an empty list means the portal has no forms. Never call manage_website_page (or a CRM tool) for form data while working on a landing page. Returns guid, name, portalId, formType, isPublished, createdAt, updatedAt. "BRAND_KIT": fetch the portal's primary brand kit (colors, fonts, logos) for THIS LANDING PAGE, complete on its own, and never to be re-fetched via manage_website_page, when brand-consistent content would help, e.g. picking a CTA color, a hero font, or a logo to drop into a header (contentId not required). "LIST_CUSTOM_MODULES": list the custom module types already in this portal's Design Manager, most recently updated first (contentId not required). Call this BEFORE CREATE_MODULE to check whether a suitable module already exists, reusing one is cheaper than creating a duplicate, and its modulePath goes straight into INSERT. Returns customModules (modulePath plus a compact field schema). Optional: limit (default 20, max 50). WRITE actions (mutate the same shared draft, issue them ONE AT A TIME, never in parallel): "CLONE": duplicate an existing page (requires contentId of the source page; optional pageName, slug and businessUnitId for the clone). Returns a new contentId. "CREATE_FROM_TEMPLATE": create the page from a template (requires pageName and templatePath; optional slug and businessUnitId). MUST be preceded by a proposal card (call render_landing_page_ui directly with a "propose" target, there is no separate write step to propose) and an explicit user confirmation IN CHAT, never the first step of creating a page, and choosing a template is NOT confirmation. Returns contentId. "SET_MODULE_FIELDS": verbatim field patch on one module (requires contentId, moduleId, fieldOverridesJson). "SET_MODULE_STYLES": set layout styles (padding, margin, background, visibility) on one module (requires contentId, moduleId, stylesJson). Merge semantics, only supplied fields are updated. Call action=MODULE_STYLES first to see current values. "SET_SECTION_STYLES": set the background, padding, margin, or full-width of the ENTIRE SECTION band a module sits in (requires contentId, moduleId, stylesJson; moduleId is any module inside the band, used as an anchor). This is the correct way to do "make this section's background <color>", do NOT inject CSS via SET_METADATA headHtml for section backgrounds. Merge semantics. Page-scoped bands, including theme dnd_partial sections, CAN be styled; only true global sections (header/footer/global widgets) are refused. "INSERT": add a new module (requires contentId, modulePath; then EITHER anchorModuleId+anchorPosition for anchor-based placement, OR sectionId+rowStart+columnStart+columnsSpanned for grid-coord placement; optional fieldOverridesJson). "REMOVE": delete one module (requires contentId, moduleId). If it was the last module in its section band, the now-empty band, background and padding included, is collapsed too, so no empty "Drop modules here" ghost band is left behind. "REMOVE_SECTION": delete the ENTIRE section band a module sits in, the whole top-level row, every module in it, AND the band's own background/padding styles (requires contentId, moduleId; moduleId is any module inside the target band, used as an anchor). Page-scoped sections, including theme dnd_partial sections like a logo bar, CAN be removed; only true global sections are refused. "MOVE": reposition module into its own new row (requires contentId, moduleId; then EITHER anchorModuleId+anchorPosition for anchor-based placement, OR sectionId+rowStart for grid placement). For MOVE, anchorPosition supports the new-row directions BEFORE / AFTER / START_OF_SECTION / END_OF_SECTION; in-row and stacked directions (IN_ROW_*, STACK_*) are INSERT-only, to place a module in-row or stacked, REMOVE it and INSERT with that anchorPosition. "SET_METADATA": update page metadata, pageName, htmlTitle, slug, metaDescription, featuredImageUrl, language, headHtml, noIndex, targetAccount (requires contentId; all metadata fields optional). "PUBLISH": publish draft (requires contentId; confirm with the user first). "RESTORE_REVISION": roll back to revision (requires contentId, revisionId; confirm first). "CREATE_CUSTOM_TEMPLATE": create a fully custom landing page from HubL source you write. Use when no existing template fits the user's design, you author the complete HTML/HubL and pass it as hublSource. Requires slug and hublSource. Returns templatePath (always .html). No module editing is needed, the HubL IS the final design. hublSource must be under 1.5 MB. "UPDATE_CUSTOM_TEMPLATE": replace the ENTIRE HubL source of a page previously created with CREATE_CUSTOM_TEMPLATE. Requires templatePath (from the create response) and hublSource; pass templateId too when you have it, it resolves the template even after a publish moves it. The change is LIVE the moment the call succeeds: every page built on the template, a published one included, renders the new source at once. There is no draft stage and no publish step, and the previous source cannot be read back. Confirm with the user first, and say when a published page will change. Use it only to change a design whose source you wrote earlier in this conversation. In a fresh session you do not have the current source, so author the changed design with CREATE_CUSTOM_TEMPLATE and CREATE_FROM_TEMPLATE as a new page; replace an existing template only when the user explicitly asks to overwrite its design wholesale and confirms. Same hublSource size limit as CREATE_CUSTOM_TEMPLATE. "CREATE_MODULE": author a NEW custom module TYPE in Design Manager, a reusable module the theme does not have yet (requires moduleName, moduleHtml, moduleFieldsJson; contentId not required). Returns modulePath. This creates the TYPE only and puts nothing on any page: pass modulePath verbatim to action=INSERT to place an instance. Reach for it only when no built-in or existing custom module fits (check MODULE_TYPES and LIST_CUSTOM_MODULES first). Not tied to a page, so several CREATE_MODULE calls CAN run in parallel. "UPDATE_MODULE": replace the HubL and/or field schema of a module type previously created with CREATE_MODULE (requires modulePath from the create response, plus moduleHtml and/or moduleFieldsJson). moduleFieldsJson REPLACES the whole schema rather than patching it. Every page using the module re-renders with the new source immediately. Only module types created through CREATE_MODULE can be updated. "BATCH": run several operations in ONE call, executed sequentially server-side, stopping at the first failure (requires operationsJson). Batchable sub-actions: all READ actions, plus the write actions SET_MODULE_FIELDS, SET_MODULE_STYLES, SET_SECTION_STYLES, SET_METADATA, REMOVE, REMOVE_SECTION, MOVE, i.e. edits on modules/sections you ALREADY have IDs for. NOT batchable (their output feeds later work, or they change whole-page lifecycle): INSERT, CLONE, CREATE_FROM_TEMPLATE, CREATE_CUSTOM_TEMPLATE, UPDATE_CUSTOM_TEMPLATE, CREATE_MODULE, UPDATE_MODULE, PUBLISH, RESTORE_REVISION, BATCH. Returns batchResults with a per-operation outcome; committed operations are NOT rolled back when a later operation fails. Read MODULES first to capture the IDs each operation needs.