create_parent_page
Builds or rebuilds a document parent page spread with running heads, folios, and optional primary text frames so pages inherit consistent headers, footers, and flow.
Instructions
Create (or rebuild with replace:true) a parent page spread — the template every document page inherits from. Can add an automatic page number (folio) and running heads. Running-head text may contain {{style:Chapter Title}} which inserts a live text variable showing the current chapter title (first paragraph in that style on the page, or the latest before it). Typical book set: A "Body" (running heads + folio), B "Chapter Opener" (folio only, no heads), C "Front Matter" (empty). Header/footer text is styled with paragraph styles "Running Head" and "Folio" (created if missing).
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": {
"prefix": "<prefix>",
"name": "<name>"
},
"name": "create_parent_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Base name, e.g. "Body". Full name becomes "A-Body" | |
| folio | No | Page number position | bottom-center |
| prefix | Yes | One letter/short prefix, e.g. "A" | |
| basedOn | No | Optional parent this parent inherits from, e.g. "A-Body" | |
| headGap | No | Points between running head frame bottom and the top margin | |
| replace | No | If the parent exists, clear and rebuild it | |
| folioGap | No | Points between bottom margin and the page-number frame | |
| folioStyle | No | Paragraph style for the page number | Folio |
| runningHeadLeft | No | Left (verso) page header text, e.g. author name. Supports {{style:...}} | |
| primaryTextFrame | No | Add margin-sized text frames threaded left→right and make them the Primary Text Frame, so placed/typed body text flows through pages and new pages are added automatically (use for Body and Chapter Opener parents) | |
| runningHeadRight | No | Right (recto) page header text, e.g. book title or {{style:Chapter Title}} | |
| runningHeadStyle | No | Paragraph style for running heads | Running Head |