resize_rows
Sets explicit pixel heights for specified spreadsheet rows or auto-fits them to content, enabling consistent row layout and readable sheet formatting.
Instructions
Set an explicit pixel height for rows, or auto-fit them to content.
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 resize end_row: 0-based index of the last row to resize (inclusive). If omitted, resizes only start_row. pixel_size: Explicit row height in pixels. Mutually exclusive with auto_resize. auto_resize: If True, auto-fit row height to content instead of setting an explicit pixel_size.
Returns: Result of the batchUpdate operation. Returns {"error": ...} without calling the Sheets API if start_row is negative, end_row precedes start_row, or pixel_size isn't positive.
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": "resize_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet | Yes | ||
| end_row | No | ||
| start_row | Yes | ||
| pixel_size | No | ||
| auto_resize | No | ||
| spreadsheet_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||