write_sheet
Writes values to a specified Google Sheets range, replacing existing data. Use it to update spreadsheet cells by providing the spreadsheet ID, range, and rows of values.
Instructions
Write data to a Google Sheet. Overwrites existing data in the specified range.
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_id": "<spreadsheet_id>",
"range": "<range>",
"values": "<values>"
},
"name": "write_sheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | The range to write to (e.g., 'Sheet1!A1' or 'A1' for current sheet) | |
| values | Yes | Array of rows to write. Each row is an array of values. | |
| spreadsheet_id | Yes | The ID of the Google Sheet (from the URL: docs.google.com/spreadsheets/d/{ID}) |