hide_rows
Hides a specified range of rows in a Google Sheets spreadsheet from view to keep sensitive, outdated, or distracting data out of sight without deleting it.
Instructions
Hide rows in a sheet from view.
Args: spreadsheet_id: The ID of the spreadsheet (found in the URL) sheet: The name of the sheet start_row: 0-based index of the first row to hide end_row: 0-based index of the last row to hide (inclusive). If omitted, hides only start_row.
Returns: Result of the batchUpdate operation. Returns {"error": ...} without calling the Sheets API if start_row is negative or end_row precedes start_row.
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>",
"sheet": "<sheet>",
"start_row": "<start_row>"
},
"name": "hide_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet | Yes | ||
| end_row | No | ||
| start_row | Yes | ||
| spreadsheet_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||