Save page content
save_page_contentSave a new version of a Convika landing page's HTML. ページ内容の保存・更新・デザイン変更。
Each call adds a new version. The live page and the current preview link don't change until you call create_preview (and publish_site, when the user asks), so call create_preview after saving for the user to review.
Version history: each plan keeps a limited number of saved versions (Free: 10, Pro: 50, MAX: 200; Enterprise: unlimited). When a save goes over that limit, the oldest saved version is deleted permanently and can't be restored with rollback_site. The live version and the version behind the current preview link are never deleted.
Workflow: create_site (if new) → save_page_content → create_preview. Use publish_site only after explicit user approval to go live. Adding a form to a new page: create_landing_page_preview → create_form → save_page_content with the form embed → create_preview.
Use "sections" to describe each in your HTML. Each section needs a "description" (what it does and why, at least 20 characters) and a "sequencePosition" (0-indexed, matching order). The "patterns" parameter is also accepted for backward compatibility.
HTML guidelines:
Complete HTML document (...) with Tailwind CSS v3
Include in :
Each section MUST be wrapped in a tag (for content tracking)
css parameter: only for styles Tailwind cannot express
js parameter: Pro plan and above only
If the page has cta_click goals (check with list_goals), add data-cta="primary" to the main CTA buttons/links for accurate conversion tracking
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| js | No | JavaScript for interactive elements (Pro plan and above only) | |
| css | No | Custom CSS for styles that cannot be expressed with Tailwind utilities | |
| html | Yes | Complete HTML document using Tailwind CSS v3 utility classes. Must include Tailwind CDN script in <head>. The page (html, css, and js together) can be up to 2 MB. | |
| siteId | Yes | The ID of the page to save content to | |
| patterns | No | Patterns used in this page. Accepted for backward compatibility — prefer sections instead. | |
| sections | No | Sections in the page. Each describes a <section> in the HTML with its purpose, position, and optional layout geometry used for optimization and DCNv3 features. | |
| changelog | No | Description of changes in this version | |
| designOverrides | No | Optional bounded design knob overrides. Supported keys: ctaEmphasis, visualDensity, contrastStrength, motionIntensity, cornerRoundness, shadowDepth, trustSignalDensity, proofProminence. | |
| designProfileId | No | Optional design profile ID. | |
| designRationale | No | Short explanation for why this design profile or override set was chosen. |