auto_fit_columns
Automatically adjust column widths to fit content in Excel files. Specify columns, sheets, and width limits to optimize spreadsheet readability.
Instructions
Automatically adjust column widths to fit content in Excel files
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the Excel file (.xlsx or .xls) | |
| sheet | No | Sheet name (optional, defaults to all sheets) | |
| columns | No | Specific columns to auto-fit (optional, defaults to all columns). Can be column letters (e.g., ["A", "B"]) or numbers (e.g., [1, 2]) | |
| minWidth | No | Minimum column width (default: 10) | |
| maxWidth | No | Maximum column width (default: 60) | |
| padding | No | Extra padding to add to calculated width (default: 2) |