maket_page
Manage page structure within documents: add, remove, rename, reorder, or list pages. For page content, use the dedicated HTML tool.
Instructions
When to use: manage page structure within a document — add, remove, rename, reorder, list. For page content, use maket_html instead.
Manage pages within a document (structure only, not content). add — append a new page with initial HTML; sets it active. remove — delete a page by 1-based index or name; refused if it's the last page. rename — rename a page by index or current name. reorder — move a page from one 1-based position to another; activePage adjusts. list — list pages with element counts; the active page is marked ●.
Note: charte compliance (token-literal colours, font-family, box-shadow) is enforced by maket_html set/patch, not by maket_page add. If the new page must match a charte, follow maket_page add with maket_html set to validate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | For reorder: target 1-based position. | |
| doc | Yes | Document name (always required). | |
| from | No | For reorder: source 1-based position. | |
| html | No | For add: HTML body for the new page. Relative image src values are normalized to /assets/... | |
| name | No | For add/rename: page name (new page name, or rename target). | |
| page | No | For remove/rename: target page — either 1-based index or page name. | |
| action | Yes | Operation to run. See the tool description for the action table. |