excel_autofit_columns
Automatically adjust Excel column widths to fit content while maintaining specified minimum and maximum constraints for optimal spreadsheet readability.
Instructions
Auto-fit column widths based on content with min/max constraints
Input Schema
Name | Required | Description | Default |
---|---|---|---|
maxWidth | No | Maximum width in pixels | |
minWidth | No | Minimum width in pixels | |
paddingRatio | No | Padding multiplier for content width | |
worksheetName | Yes | Name of worksheet to auto-fit |
Input Schema (JSON Schema)
{
"properties": {
"maxWidth": {
"default": 300,
"description": "Maximum width in pixels",
"type": "number"
},
"minWidth": {
"default": 30,
"description": "Minimum width in pixels",
"type": "number"
},
"paddingRatio": {
"default": 1.2,
"description": "Padding multiplier for content width",
"type": "number"
},
"worksheetName": {
"description": "Name of worksheet to auto-fit",
"type": "string"
}
},
"required": [
"worksheetName"
],
"type": "object"
}