Get page structure
get_page_structureGet the structural composition of a landing page version — sections, CTA placements, and conversion goals.
Returns, in page order, the page-level , each , and the page-level , each with its id, first heading, and the CTAs inside it (text, link, type, and whether it is marked data-cta="primary"). CTAs outside those elements are listed in ctasOutsideSections. CTA text matches what query_cta_performance reports, so you can tell where the clicked CTA sits. If the version was saved with the sections argument of save_page_content, each section also carries that description, pattern ID, layout type, and fold position; otherwise those fields are null. sequencePosition matches sections[].sequencePosition in save_page_content. Use get_site for the saved HTML itself and version history. If version is omitted, the current production version is used, then the latest saved version as fallback. If the requested version does not exist, the tool returns version_not_found. If the page has no saved versions yet, it returns page_structure_unavailable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | The ID of the page | |
| version | No | Specific version number. Defaults to current production version. |