set_dimensions
Set column widths and row heights in points for a range, or autofit columns and rows to their content so spreadsheet data displays clearly without manual resizing.
Instructions
Set column widths and/or row heights for a range, in points. Optionally autofit columns or rows to their content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | A1 range address, e.g. "A:A" or "1:10" or "A1:C10". | |
| rowHeight | No | Row height in points. | |
| sheetName | No | Worksheet name. Defaults to the active worksheet. | |
| workbookId | No | Target workbook ID from list_workbooks. Optional when only one workbook is connected. | |
| autofitRows | No | Autofit row heights to content. | |
| columnWidth | No | Column width in points. | |
| autofitColumns | No | Autofit column widths to content. |