readSpreadsheet
Reads rows from a specified Google Sheets range using A1 notation and returns values as arrays for analysis or batch processing.
Instructions
Reads data from a range in a spreadsheet. Returns rows as arrays. Use A1 notation for the range (e.g., "Sheet1!A1:C10").
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": {
"spreadsheetId": "<spreadsheetId>"
},
"name": "readSpreadsheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | No | One bounded A1 range to read (e.g., "A1:B10" or "Sheet1!A1:B10"). | |
| ranges | No | Several bounded A1 ranges to read into one handle, for a later batchWrite. | |
| spreadsheetId | Yes | The spreadsheet ID — the long string between /d/ and /edit in a Google Sheets URL. | |
| valueRenderOption | No | How values should be rendered in the output. | FORMATTED_VALUE |