get_page
Fetches an existing page's source tree, with compact or outline modes for structure inspection, and can return one element's subtree or a cached draft.
Instructions
Fetches an existing page's source tree { page, popup, settings, options, cartConfigs } with its name, organization_id and source_version. By default the tree is compacted: boilerplate shared by every element (properties, runtime, empty events/children, per-breakpoint config and factory-default style keys) is stripped, giving the same sparse shape the save tools accept and re-hydrate. compact:false returns the raw stored tree. outline:true returns only a one-line-per-element tree (id type "text…" d:left,top,w×h m:left,top,w×h [hidden-on-mobile] [events:n], indented by depth) — read it first, then fetch one element with element_id (its subtree + parent_id + path). draft_id reads a cached draft instead of a live page. Requires Webcake credentials for page_id.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compact | No | Default TRUE — strip factory-default boilerplate from every element (sparse shape, far fewer tokens). false returns the raw stored tree. | |
| outline | No | true → only the compact element tree (ids, types, text, desktop/mobile boxes), far smaller than the source. | |
| page_id | No | The page id (from list_pages or a URL). Provide page_id OR draft_id. | |
| draft_id | No | Read a cached draft (from create_page / add_section / update_page / patch_page) instead of a live page. | |
| element_id | No | Return just this element's subtree, with its parent_id, root and path of ids. | |
| organization_id | No | Organization the page(s) belong to: an organization id, or 'personal' (= no organization). Settle it first (list_organizations; ask the user when the account has 2+). When omitted: the org remembered for this page_id (from get_page), else WEBCAKE_ORG_ID / x-webcake-org-id, else the account's only organization, else ok:false reason:'organization_required' with the list. |