tabularia_set_headers_and_margins
Set what a Book's running headers and footers print, its margin numbers, and the Project's header typeface, the way the Headers & Margins settings in Tabularia do. Only what you give changes. A place set here is the Book's own; a Chapter or page the Writer gave its own words keeps them. Read tabularia_read_book_settings first, and change only what the Writer asked for. The answer's previous holds what each changed field was, in this tool's own shape: send it back as the request to put them back. From the cloud a Snapshot is kept before the change; with Tabularia open on this computer, take one with tabularia_take_snapshot first. Send a requestId you make up for this one change, and send the same requestId if you retry it after an error or a lost answer: a retry with it answers with the first result and does not write again. A new change needs a new requestId, even when its wording is the same.
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": "tabularia_set_headers_and_margins"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bookId | No | Which Book, by its id from tabularia_project_metadata. Leave it out when the Manuscript has one Book. | |
| places | No | The header and footer places to set for the whole Book, each once: region header or footer, slot left, center or right, and either prints — words and fields such as {{book-title}}, {{chapter-title}}, {{author-name}} or {{page-number}}, or an empty string for nothing — or useBookDefault true to go back to what the Book printed there by default. | |
| project | No | Which open Project to use, by title, id, or the Studio address the Writer sees (a tabularia.app/studio/ URL or its six-character code — the Writer’s tab URL is enough; there is no need to look at the page). Omit it when only one Project is open in Studio. | |
| requestId | No | Optional. Your own name for this one change, 1–80 letters, digits, underscores, or hyphens. Reuse it only to retry the same change with the same input. | |
| marginNumbers | No | The Book’s own margin numbers, lane by lane, with the fields tabularia_read_book_settings reports under marginNumbering: visible, includeInOutput (whether they print), side (left or right), interval for line and paragraph numbers, design and restart for section numbers. Section numbers also take format ("section-sign" for § 230, the default; "number", "period", or "parentheses") and placement ("paragraph-start" sets each number before its paragraph’s first line; null puts them back in the margin lane on their side). | |
| headerFontFamily | No | The typeface every header and footer in the Project is set in, or an empty string for the default. It is the Project’s, not one Book’s. |