Change a workbook with a run
run_workbookChanges what a workbook says by starting a research run: add, update, refresh or rewrite content, in one sentence the way a person would say it ('add a section on Q3 headcount', 'refresh the cash figures from the latest 10-Q'). Uses the account's balance; returns its run id at once. Also answers the question a workbook is asking (answer: yes or no) and stops its live run (stop).
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": {
"workbook": "<workbook>"
},
"name": "run_workbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | What this workbook's runs are, from now on. `harnessroom` (a new workbook's default): the instruction is a request, and a harness researches and writes the document. `latticeroom`: the instruction is a draft someone already wrote, whole — markdown, its links kept — which comes back exactly as written, with the run's inference beside it (read_workbook's `inference`: each claim cited, self-reported, secondary only, contradicted or with no source, and its sources); each entry under its References or Bibliography heading is looked up in Crossref and on the web and marked found, found with other authors or year, or not found, and a sentence citing it — [3], (Smith et al., 2020) — is read against the work found; attach data files (.json, .csv, .tsv) to settle the draft's own figures. `graphroom`: the document is the graph, one ```mermaid flowchart, edited with write_workbook like any document (each edit a version; one that cannot run is refused); a run performs the current version and is kept in the workbook's `graph_runs` with what each box held, changing no version. Runs refuse until a graph is drawn. `flashroom`, for a workbook made from a spreadsheet or a Word document: the instruction is an edit to its sheet, or to the document's table it is about, planned in seconds and kept in `messages` — each cell's before and after, the rows added and removed — and nothing is written until the next instruction is `yes`, which makes it as a new version. `askroom`: the workbook is asked and never changed — every instruction is a question of the document as it stands, answered in seconds and kept in `messages`; no run writes a version. A mirror's read-only copy is always an askroom. Omit to keep the workbook's current mode. | |
| stop | No | true to stop the run editing the workbook. | |
| work | No | true when the instruction is work to do, not a question. The run then starts without first checking whether the instruction is a question. | |
| answer | No | yes or no, to what the workbook is asking. | |
| run_id | No | With `stop`: the run to stop, when not the live one. | |
| workbook | Yes | The workbook id. | |
| attachments | No | Files to attach to the workbook — before its run starts, when one does, so it reads and cites them — each {name, content_base64, content_type?}, 32 MB at most. They stay attached for every later run; list_attachments shows them. | |
| instruction | No | What should change, in one sentence. | |
| sources_folder | No | The drive folder you keep this workbook's subject in — e.g. `/dropbox/Market research`. What the run cites is filed there once it delivers, instead of a folder named after the document's title. |