excel_write_range
Write a 2D list of values to an Excel sheet starting at a given cell, automatically extending the sheet's used range.
Instructions
Write a 2D list of values starting at start_cell.
The data is interpreted in row-major order: data[0][0] goes
to start_cell, data[0][1] to the cell one column to the
right, data[1][0] to the cell one row below, and so on.
Writing extends the sheet's used range as needed
(VAL-EXCEL-027).
Args:
path: Path to an existing .xlsx.
sheet: Name of the sheet.
start_cell: Top-left cell of the write region (e.g. "A1").
data: 2D list of values. The empty list [] is accepted
and is a no-op (the file is still saved; the workbook
remains valid).
folder: Optional base folder for relative paths.
Returns:
{"ok": True}.
Raises:
OfficeMCPError: ERR_FILE_NOT_FOUND if the file is
missing, ERR_SHEET_NOT_FOUND for an unknown sheet,
ERR_CELL_PARSE for a malformed start_cell,
ERR_INVALID_PARAMS if data is not a list,
ERR_UNSUPPORTED_FMT for non-.xlsx extensions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| sheet | Yes | ||
| start_cell | Yes | ||
| data | Yes | ||
| folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||