page
Manage storefront site content via action: list, create, rename, delete, read/save source, update translations, and preview saved drafts before publishing.
Instructions
Pages of the current site: list, create, rename/SEO, delete, read and save the source, content text, preview. Pick the operation with action and pass that action's arguments (help:true returns its full documentation and schema).
list_pages: List all pages of the site (metadata only, without source)
create_page: Create a new (empty) page.
update_page: Update page properties: name, slug, homepage, SEO ("Cài đặt SEO") and settings.
delete_page: Delete a page
get_page_source: Get page source overview: section count, element type counts, and all custom CSS classes.
update_page_source: Directly update the full page source JSON.
list_page_contents: List multi-language contents (translations) of the site's pages and global sections.
update_page_content: Create/update page content for a specific language.
preview_page: LOOK at a saved page before publishing: screenshots of the SAVED (unpublished) draft at desktop and mobile width, through the editor's own Preview host (it renders page.source +…
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": {
"action": "<action>"
},
"name": "page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seo | No | SEO → settings.seo (title/description/keyword/favicon/thumbnail). [create_page, update_page] | |
| help | No | Return the action's full documentation and argument schema instead of running it | |
| name | No | Page name [create_page, update_page] | |
| slug | No | URL slug WITHOUT a leading slash, e.g. [create_page, update_page] | |
| type | No | Page kind (main/store/member/blog/custom/error/maintain). [create_page] | |
| action | Yes | Which operation to run | |
| source | No | Full page source object (sections tree) or JSON string [update_page_source] | |
| widths | No | Viewport widths; default desktop 1280 + mobile 420 (the site's bp1 and bp4) [preview_page] | |
| content | No | Translations keyed by element id → field, e.g. [update_page_content] | |
| page_id | No | Page ID [update_page, delete_page, get_page_source, update_page_source, list_page_contents, update_page_content, preview_page] | |
| settings | No | Other page settings keys to merge (top-level keys replace) [update_page] | |
| full_page | No | Whole scrollable page (default) or just the first screen [preview_page] | |
| meta_tags | No | SEO meta tags [update_page_content] | |
| native_gap | No | Only when the code was refused and no native way exists: the need, the elements/apps you checked,… [update_page_source] | |
| custom_code | No | JS for this page only → page.settings.custom_code.code_custom_javascript (same as update_page_cus… [update_page_source] | |
| is_homepage | No | Set as homepage [create_page, update_page] | |
| allow_shrink | No | Allow the source to shrink by more than half: set it when native elements replaced an oversized e… [update_page_source] | |
| language_code | No | With page_id: return just that language's content map [list_page_contents, update_page_content] |