auto_resize
Automatically adjust column or row sizes to fit content in Google Sheets. Specify the spreadsheet, sheet, dimension, and optional index range for resizing.
Instructions
Auto-resize columns or rows to fit content.
Args: spreadsheet_id: The ID of the spreadsheet sheet: Sheet/tab name dimension: 'COLUMNS' or 'ROWS' start_index: 0-based start index end_index: 0-based end index (exclusive). Omit to resize all.
Returns: Result of the resize operation
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>"
},
"name": "auto_resize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spreadsheet_id | Yes | ||
| sheet | Yes | ||
| dimension | No | COLUMNS | |
| start_index | No | ||
| end_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |