autofit_columns
Resize worksheet columns to match their content, optionally targeting selected columns and setting min/max width limits. Fixes cramped or overflowing text in spreadsheets.
Instructions
Auto-fit worksheet columns based on content width.
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": {
"filepath": "<filepath>",
"sheet_name": "<sheet_name>"
},
"name": "autofit_columns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| columns | No | ||
| dry_run | No | ||
| padding | No | ||
| filepath | Yes | Reuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing. | |
| max_width | No | ||
| min_width | No | ||
| sheet_name | Yes |