edit landingpage draft
edit_landingpage_draftPreferred way to author or edit a landingpage: submit only changed native document fields, without copying the full draft, unused sections or image renditions. Read get_landingpage first and pass its exact draftVersion. Each change replaces the value at an existing path, e.g. {path:["sections","hero","title"],value:"Mein Webinar"} or {path:["sections","socialProof","enabled"],value:false}. Set page-wide base text color with {path:["textColor"],value:"#243145"}; null restores the default base. Automatic contrast remains active for sections, cards, buttons and legal pages: use the base at contrast >=4.5:1, otherwise white or black. Glass hero applies the same rule to its light/dark overlay. Replace whole items arrays to add/remove items. Unmentioned fields and disabled sections remain unchanged. The backend assembles the full candidate, validates and renders a preview automatically, then saves in mode save (default). mode preview renders without saving. Invalid candidates return diagnostics and are never saved. publishable:false can still be a valid draft, e.g. with an inactive form; repair publication blockers before publishing. A successful save returns the new draftVersion. No need to call full-document validation/preview/save separately. Does not publish or activate forms. Version conflicts require rereading; never overwrite concurrent changes. 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>",
"changes": "<changes>"
},
"name": "edit_landingpage_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | save | |
| title | No | ||
| pageId | Yes | ID returned by inviomail for this tenant | |
| changes | Yes | ||
| draftVersion | Yes | Exact saved version returned by inviomail; reread after conflicts |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | ||
| saved | Yes | ||
| title | Yes | ||
| valid | Yes | ||
| issues | Yes | ||
| pageId | Yes | ID returned by inviomail for this tenant | |
| requestId | Yes | ||
| publishable | Yes | ||
| draftVersion | Yes | Exact saved version returned by inviomail; reread after conflicts | |
| publishErrors | Yes | ||
| publishWarnings | Yes |