Get page content
get_page_contentGet the actual text content of a page's sections (titles, descriptions, CTAs, images, items). Use this to read what's on the page before editing.
By default the result is a compact outline: per section its id, logicalId, name and type, and per uislice its id, type, collectionId and content (ctx), with empty values left out and each icon's svgStr markup replaced by a short reference such as svg:1a2b3c4d. Send such a reference back unchanged and the icon is kept. Layout settings (cfg) are left out: pass mode "full" for every section's cfg, or read one section with get_section_content. latestRevision.version is the lastVersion a save needs, and latestRevision.headAnchor binds a publish to what was reviewed. The text names the page, revision and section ids too.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | outline (default): content without layout settings; full: every field, including cfg and icon markup | outline |
| pageId | Yes | The page ID | |
| projectId | Yes | The project ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| name | No | ||
| slug | No | ||
| status | No | ||
| latestRevision | No |