Sheets Write
sheets_writeWrite data to a Google Sheet range, overwriting existing values. Specify sheet name, range (e.g., 'A1:C10'), and row data.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"range": "Sheet1!A1",
"values": [
[
"Name",
"Age",
"City"
],
[
"Alice",
"30",
"New York"
],
[
"Bob",
"25",
"Los Angeles"
]
],
"spreadsheet_id": "1BxiMVs0XRA5nFMmqvzausWYMYq6nS8twLu0gKBvMZsk"
},
"name": "sheets_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | A1 notation range (e.g., "Sheet1!A1") | |
| values | Yes | Array of rows, each row is an array of cell values | |
| spreadsheet_id | Yes | Spreadsheet ID | |
| value_input_option | No | How to interpret input. USER_ENTERED (default) parses formulas/dates/numbers. RAW stores literal strings. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error code if connection required | |
| message | No | Error message if connection required | |
| updatedRows | No | Number of rows updated | |
| updatedCells | No | Total number of cells updated | |
| updatedRange | No | Range that was updated | |
| spreadsheetId | No | Spreadsheet ID that was written to | |
| updatedColumns | No | Number of columns updated |