excel_write_cell
Write a single value to a specified cell in an existing .xlsx file. Values beginning with '=' are stored as formulas.
Instructions
Write a single value to one cell.
Strings starting with = are persisted as formulas
(VAL-EXCEL-022). Other types (int, float, bool,
None) are written verbatim via :meth:openpyxl.cell.Cell.value.
Args:
path: Path to an existing .xlsx.
sheet: Name of the sheet.
cell: A single cell reference like "A1".
value: Value to write.
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 cell,
ERR_UNSUPPORTED_FMT for non-.xlsx extensions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| sheet | Yes | ||
| cell | Yes | ||
| value | Yes | ||
| folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||