autoResizeColumns
Resizes spreadsheet columns to fit their content, optionally within a specified A1 range or across all columns by default.
Instructions
Auto-resizes columns in a spreadsheet to fit their content. Optionally restrict to a column range (e.g., "A:S"); defaults to all columns.
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": {
"spreadsheetId": "<spreadsheetId>"
},
"name": "autoResizeColumns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| columns | No | Column range to resize in A1 notation (e.g., "A:S"). Omit to resize all columns. | |
| sheetName | No | Name of the sheet/tab. Defaults to the first sheet if not provided. | |
| spreadsheetId | Yes | The spreadsheet ID — the long string between /d/ and /edit in a Google Sheets URL. |