workbook_structure
An attached workbook as the model it is, whatever it models. Without sheet, it answers the question an import asks first — what is the faithful representation of this workbook in GraphSheets — as a plan: the one axis the model takes (the finest grain, the widest range, the last actual column) and which sheets disagree with it; for every sheet whether it is sections of nodes, a ledger, constants, headings or empty, with the heading groups that become subsections, its checks, its held rows, its mirrors and its rollup columns; and fidelity, every place a faithful representation is not available (two grains, a formula the DSL lacks, a scenario switch, a macro, another workbook, a circular reference) and what the import does instead. Beside it, every sheet's period axis, how many of its rows are typed, worked out, mixed or constants, whether it is a table of records (a journal, a price history: fields, entries, the values of a category column), its units hint, and the workbook's notes — the orientation call, one step. With sheet: that sheet's rows in order, each saying whether it is an input (typed in every period), calculated (a formula in every period, given once in label terms — {Capacity} * {Utilisation}, {Consumption}[-1] * (1 + {Parameters!Growth}), {Revenue} - {Cost of sales}), mixed (typed in some periods, a formula in others), a constant, or a check, the heading it sits under, the Excel functions it calls and whether the DSL can express them. This is the wiring the model rebuilds: a row the sheet works out is a formula in the model, never a row of numbers; a table of records is a ledger, never rows. Pass sheets to read several sheets in one call — every sheet you will build from, in one step, is the ordinary way to read a workbook. Pass values: true to get each row's cached values by period as well; you rarely need them, because workbook_fill writes a row's cached values onto the node that cites it without your retyping them.
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": "workbook_structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many rows. Default 150, maximum 400. | |
| model | Yes | Model uid (`model_…`), from model_list. | |
| sheet | No | A sheet name from the overview. Omit for the overview of every sheet. | |
| offset | No | First row of the listing to return, zero-based. Default 0. | |
| sheets | No | Several sheet names, each returned whole in one call; `offset` and `limit` do not apply. | |
| values | No | Include each row's cached values by period. Default false. | |
| attachment | No | The attachment id from attachment_list. May be omitted when one workbook is attached. |