Read ranges
sheets_readReads one or more A1 ranges from a Google spreadsheet in one call, returning TSV by default, formula text when requested, and a next range if output is capped.
Instructions
Read one or more A1 ranges in a single call. valueRender FORMULA returns formula text rather than results. Output is TSV by default and capped; a truncated range reports nextRange to continue from.
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>",
"ranges": "<ranges>"
},
"name": "sheets_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output encoding. TSV (default) is substantially cheaper than JSON for a grid. | |
| ranges | Yes | A1 ranges, e.g. ["Sheet1!A1:G100", "Summary!A:C"]. Several are fetched in one call. Use sheets_describe first to get each tab's used range rather than guessing A:ZZ. | |
| account | No | Google account to act as. Optional when one account is authorised or a default is set; required otherwise. | |
| maxRows | No | Row cap per range. Default 200. | |
| maxChars | No | Character cap per range; whole rows are dropped, never partial ones. Default 50000. | |
| spreadsheet | Yes | Spreadsheet URL or file id. Both accepted; a URL has its id extracted. | |
| valueRender | No | FORMATTED (default) returns cells as displayed; UNFORMATTED returns raw numbers; FORMULA returns the formula text, e.g. "=SUM(A1:A9)". |