maket_page
Manage document pages: add, remove, rename, reorder, or list pages, and set or read JSON Forms templates. Use for page structure, not page content.
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. HTML can embed the current JSON Forms template at . add — append a page with html, json_forms, or both with one form slot; 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 their template format; the active page is marked ●. set_form — replace the current form, preserving HTML with a form slot; without a slot, switch to a full-page form. get_form — read one page's JSON Forms template.
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. | |
| json_forms | No | For add/set_form: JSON Forms template. Omit uischema to generate the form from the document-state JSON Schema. |