close_workbook
Close an open Excel workbook by file name. Discard unsaved changes by default, or pass save=True to write them first. Returns the closed name and remaining open workbooks.
Instructions
ModelRisk: Close an open workbook by file name. By DEFAULT unsaved changes are DISCARDED (save=False) — pass save=True to write them first. Returns the closed name and the workbooks still open. Raises if the named workbook isn't open.
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_name": "<workbook_name>"
},
"name": "close_workbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | Save before closing. False (default) discards unsaved changes. | |
| workbook_name | Yes | File name of an open workbook, e.g. 'risk.xlsx'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||