Write cells
sheets_writeWrites cell values to one or more A1 ranges in a single batch, parsing formulas and dates with USER_ENTERED or storing literal text with RAW, and supports dry-run previews.
Instructions
Write values to one or more A1 ranges in a single batch. valueInput USER_ENTERED (default) parses input as if typed, so formulas and dates work; RAW stores literal text. Supports dryRun.
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": {
"spreadsheet": "<spreadsheet>",
"updates": "<updates>"
},
"name": "sheets_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | When true, returns the exact API request that would be sent plus an impact summary, and sends nothing. | |
| account | No | Google account to act as. Optional when one account is authorised or a default is set; required otherwise. | |
| updates | Yes | Ranges to write. Several are applied in one batch — one API call, one unit of quota. | |
| valueInput | No | USER_ENTERED (default) parses input as if typed: "=SUM(A1:A9)" becomes a formula and "9/13" becomes a date. RAW stores the literal string. | |
| spreadsheet | Yes | Spreadsheet URL or file id. Both accepted; a URL has its id extracted. |