workbook_draft
Pass one of a workbook import, written for you from the profile: every row that carries a figure or a check becomes a node — a section per sheet, a subsection per heading, the leaf from the row's label — with the sheet's formula translated to the DSL (references to node names, Excel's functions to the DSL's, a row that chooses by a scenario toggle as one input holding each case's values in that case's scenario, an NPV or IRR as the DSL's own gated to one cell), a typed row an input left empty for workbook_fill, a scalar a constant carrying its number in the base unit, and a row the DSL cannot express held as a value with the Excel formula quoted. Every node carries the sheet's title, unit, number format and citation. A mirror of a row on another sheet is not written twice; a row already in the model keeps its own name and formula unless overwrite says otherwise. Pass names for the rows whose name should be a template's or the analyst's ({"Summary!Project NPV": "valuation.npv"}) and sections for a sheet that should land somewhere other than under its own name. Several sheets, or all of them, go in one call, so the sheets that read each other arrive together. Then workbook_fill, verify, and workbook_reconcile; what the draft could not translate is listed as held with the reason, and a reference it could not resolve as unresolved, each with the name it wrote so set_formula can finish it. Read the result rather than the sheets: the listing is for the rows this names.
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_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model uid (`model_…`), from model_list. | |
| names | No | Row → node name, for rows the sheet's own name will not do for: `{"Summary!Project NPV": "valuation.npv", "Model!Revenue": "income.revenue"}`. Keys are `Sheet!Label`, `Sheet!row N` or the citation the listing prints. | |
| scale | No | The sheet's magnitude, as workbook_fill and workbook_reconcile take it: a number for every sheet or `{Model: 1000}` per sheet, for a sheet whose corner says USD 000s. Where it says nothing, each row's own unit text decides (`kUSD` is a thousand); pass the same to the fill and the reconcile. | |
| sheets | No | The sheets to draft. Default: every sheet with rows to import. A sheet declared out of the import is simply left off. | |
| sections | No | Sheet → section path: `{"CF": "cashflow", "BS": "balance"}`. Default: the sheet's name as a path. | |
| overwrite | No | Rewrite rows the model already holds from the sheet. Default false: a row already cited is left as it is and only referenced. | |
| attachment | No | The attachment id from attachment_list. May be omitted when one workbook is attached. |