write_values
Writes contiguous blocks of cell values to Excel worksheets, checking expected content to skip conflicts and verifying results by reading cells back.
Instructions
Write blocks of cell values. Each block is one contiguous range with a 2D values array (a scalar for one cell). expected (same shape; exact text, sha256:, or null to skip a cell) is the base check: a block whose current content differs is skipped as a conflict, never half-written. After writing, every block is read back and compared (status written-verified / written-mismatch). Values are interpreted like typed input: text that looks like a number/date may be converted — mismatches report it.
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": {
"file": "<file>",
"sheet": "<sheet>",
"writes": "<writes>"
},
"name": "write_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Workbook: SharePoint URL, an alias from ~/.graph-excel/workbooks.json, or "driveId:itemId" | |
| send | No | false (default) = dry run: shows what would change. true = write — only after the user approved (or a standing rule allows it) | |
| sheet | Yes | Worksheet name exactly as listed by resolve | |
| writes | Yes |