autofit_columns
Adjust Excel column widths based on the longest text in each column, using optional min/max limits and padding to prevent cramped cells.
Instructions
Automatically adjust column widths based on maximum text length.
Args: path: Path to the .xlsx file, or the name of a preloaded file. Omit if only one file is configured. sheet: Sheet name. min_width: Minimum allowed column width. max_width: Maximum allowed column width. padding: Extra padding characters to add to max length.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| sheet | Yes | ||
| backup | No | ||
| padding | No | ||
| max_width | No | ||
| min_width | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||