document_set
Lay out a document for print — a report, a one-page summary, a board pack, a set of statements: whatever the person asked for, never a kind they did not — which the person exports as a PDF from the model's Documents page. Written whole: blocks in order replaces the document's blocks, and the fields you pass replace its own (name picks an existing document; without one, a new document is made from title). title is what is printed; label is what the document is called in the model's list where that differs ('Annual report v2'). header and footer are the running lines on every page but the cover, and page its size, orientation and margins; brand its house style — a logo, an accent colour, typefaces, the firm's name for {brand} in a running line — only as the person gives it. Blocks: text (Markdown whose figures are references, {{bs.cash[2025]}}, {{valuation.per_share@astra_at_book}} for the figure as another scenario has it, {{prices.close}} for a table's price column at its latest entry — never a typed number; or section to draw that section's own text: prose about the model, a commentary or a note, is written with add_section text and drawn here, so it lives in one place), statement (a title and lines: ref a row or a section, label only where the line should read other than the row's title, style heading/subtotal/total, negate to show a cost as a deduction, indent; a line with only a label is a heading, an empty line a space), chart (a chart's uid), page_break, logo (one of the house style's logos in the body: logo names a further one, absent the main; height in mm), risk (a reading of the model's simulation, run where the document is drawn — view fan with node for a row's spread over the periods, drivers with node for what moved it most, checks for how often each check fails across the trials, statistics for the risk specification's statistics, statistics naming which; only on a model that declares distributions), and signature (where the document is signed: a title above, one line per signatories entry with the name and role under it, dated for a date line — names only as given, a name left out for a line signed by hand); a block's width (half, third, two_thirds) sets it beside the next. Columns are periods — axis labels, or on a finer axis a coarser period's label (2025, 2025-H1, 2025-Q3, or a month of a weekly model) rolled up by each row's own rule, a flow summed and a balance closed — any run of them, the most recent first in every table of the document, a total before the periods inside it (["2025", "2025-Q4", "2025-Q3", "2025-Q2", "2025-Q1"]), whatever order a source sheet printed them in; absent, the closed year and the one before. A column 2025 vs 2024 is the change between two columns and 2025 vs 2024 % the same in per cent — the comparison a results-of-operations table puts beside the two years. Anything the model does not hold is refused by name. remove takes the document away.
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": {
"model": "<model>"
},
"name": "document_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | An existing document's name, to change or remove it. | |
| page | No | ||
| brand | No | The house style it prints in — only what the person asked for or the model already carries; a document is unbranded unless they say. Passed whole: it replaces the document's brand, and an empty object takes it away. | |
| label | No | What the document is called in the model's list where it should differ from the printed title — 'v2', 'sanitised for the bank'. Never printed; an empty string takes it away. | |
| model | Yes | Model uid (`model_…`), from model_list. | |
| title | No | The title printed on the cover and at the head of each page. | |
| blocks | No | ||
| footer | No | The line at the foot of every page but the cover, the same way. Absent, '{page} / {pages}' at the right. | |
| format | No | The file the document downloads as: pdf (the default), or docx — a Word file, for a document somebody will edit and send on. Set it only when asked. | |
| header | No | The line at the head of every page but the cover, in three slots of text with placeholders {title}, {subtitle}, {model}, {brand}, {date}, {page}, {pages}, and {logo} (the house style's logo, drawn at the line's height) or {logo:name} (one of its further logos). Absent, the title at the left; every slot empty, none. | |
| remove | No | ||
| periods | No | The columns every statement shows, left to right. | |
| scenario | No | The scenario the figures are drawn in; base unless said. A figure in prose that should read another scenario names it: `{{name@scenario}}`. | |
| subtitle | No | The line under it: the entity and the period ('For the year ended 30 June 2025'). | |
| coverLogo | No | Which logo the cover draws: false for none, the name of one of `brand.logos`, or null for the main logo (the default). Only as the person asks. |