sheets_get_values
Retrieve values from a specific range in a Google Sheets spreadsheet using the spreadsheet ID, range, and optional parameters for major dimension and value rendering.
Instructions
Get values from a specified range in a Google Sheets spreadsheet
Input Schema
Name | Required | Description | Default |
---|---|---|---|
majorDimension | No | The major dimension of the values (default: ROWS) | |
range | Yes | The A1 notation range to retrieve (e.g., "Sheet1!A1:B10") | |
spreadsheetId | Yes | The ID of the spreadsheet (found in the URL after /d/) | |
valueRenderOption | No | How values should be represented (default: FORMATTED_VALUE) |
Input Schema (JSON Schema)
{
"properties": {
"majorDimension": {
"description": "The major dimension of the values (default: ROWS)",
"enum": [
"ROWS",
"COLUMNS"
],
"type": "string"
},
"range": {
"description": "The A1 notation range to retrieve (e.g., \"Sheet1!A1:B10\")",
"type": "string"
},
"spreadsheetId": {
"description": "The ID of the spreadsheet (found in the URL after /d/)",
"type": "string"
},
"valueRenderOption": {
"description": "How values should be represented (default: FORMATTED_VALUE)",
"enum": [
"FORMATTED_VALUE",
"UNFORMATTED_VALUE",
"FORMULA"
],
"type": "string"
}
},
"required": [
"spreadsheetId",
"range"
],
"type": "object"
}