auto_fit_columns
Eliminate truncated text by auto-fitting column widths to the contents of any worksheet.
Instructions
Auto-fit column widths to their contents for a worksheet.
Args: file_path: Workbook path. sheet_name: Worksheet name.
Returns: str: Success message.
Notes: - Mutates column widths and may be expensive on large sheets.
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": {
"file_path": "<file_path>",
"sheet_name": "<sheet_name>"
},
"name": "auto_fit_columns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| sheet_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |