update landingpage document
update_landingpage_documentReplaces the complete native landingpage document and internal title using the exact draftVersion from get_landingpage. Validate and preview the complete candidate first. Covers all editor section, item, design, SEO, language, image, form and legal-source settings. Optional document.textColor sets the page-wide base text color (#RRGGBB); null or omission restores the default base. Automatic contrast remains active (4.5:1 minimum, otherwise white or black). Use normalizedDocument; preserve unedited fields and disabled sections. Saving increments draftVersion and does not change the public page. On version conflict reread and reapply intended changes without overwriting other edits. Choose sections for the user's audience, offer and ONE main conversion goal; do not use every section just because it exists. The full section catalog includes sections initially disabled in a newly created draft: enable them when useful. Sections enabled by the default preset may also be disabled when unnecessary; the initial selection is only a starting point. A short lead/signup page may need only hero, benefits and signup, with optional real trust evidence. Every optional section can be enabled or disabled independently via document.sections..enabled = true/false; hero.enabled must remain true. Keep every section object and its saved content in the full document when disabling it. Section order is fixed by inviomail; selecting fewer sections does not require rearranging keys. Header, pricing, testimonials, FAQ and finalCta are optional, not a checklist. If proof or content is missing, omit the optional section instead of inventing facts. When the user asks you to create a new landingpage, that request authorizes replacing the generated starter copy, example headings, CTAs, placeholder items and starter media in the new default draft to fulfill the requested page. Do not ask for separate permission merely because the freshly created draft already contains prefilled text. Continue directly with authoring, preview and saving. Preserve user-authored content outside the requested changes, including content in an existing page or a sourceId duplicate; generated default prefill is intended to be customized. Available sections in fixed display order:
header: Header / navigation: optional logo or page name, a few navigation links in items[].cta and an optional section CTA; hide it for a focused campaign without a menu.
hero: Hero / opening: required opening headline, audience and main benefit, supporting copy, primary CTA and optional image; make the next action clear.
socialProof: Social proof / trust: compact early reassurance through real customer logos, references or verified figures in items[].image/title/text; omit when no authentic proof is available.
problemSolution: Problem & solution: describe the audience's situation in text and the proposed improvement in solution, with an optional image; useful when the need requires explanation.
benefits: Benefits: explain what the visitor gains, usually three to six concise cards in items[].title/text/icon; focus on outcomes rather than technical details.
features: Features / services: explain concrete deliverables or product details in items with alternating text and images; useful for demonstrating the offer.
howItWorks: How it works / process: show the steps from signup or purchase to the result, often three simple steps; omit when the action is self-explanatory.
testimonials: Testimonials / results: real quotes, case examples or substantiated outcomes, using items[].text/author/role/image; do not invent testimonials or keep example claims as facts.
pricing: Offer / pricing: packages using items[].title/price/features/cta; use only when a concrete offer or price helps the conversion goal.
faq: FAQ: address actual questions and objections; item.title is the question and item.text the answer, rendered as an accordion.
signup: Signup / form: one embedded active Invio form selected by formId, with page-specific introduction; use for newsletter, freebie or registration goals.
finalCta: Final CTA: repeat the central benefit and one clear next action at the end; omit if the signup form already provides a sufficient conclusion.
footer: Footer: optional contact and closing content; legal links remain visible even when its content section is disabled. Authoring reference: sendout://landingpages/authoring-guide/v1; use get_landingpage_content_reference if resources are unavailable.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pageId": "<pageId>",
"draftVersion": "<draftVersion>",
"title": "<title>",
"document": "<document>"
},
"name": "update_landingpage_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Internal page name | |
| pageId | Yes | ID returned by inviomail for this tenant | |
| document | Yes | Complete replacement document, preferably from validation. Each optional section is independently enabled/disabled via sections.<key>.enabled; hero stays enabled and disabled objects retain their content. | |
| draftVersion | Yes | Exact draftVersion last read; conflicts require rereading |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| requestId | Yes |