Delete columns
delete_columnsDelete one or more worksheet columns starting at a 1-based column index and shift remaining columns left to keep data contiguous. Use clear_range instead when cells should be emptied without shifting.
Instructions
Delete columns starting at start_column; columns to the right move left. To empty cells without shifting use clear_range.
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": {
"sheet": "<sheet>",
"start_column": "<start_column>"
},
"name": "delete_columns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File path or preloaded name (list_configured_files). Omit if only one file is preloaded. | |
| count | No | How many to insert or delete. | |
| sheet | Yes | Sheet name (case-sensitive). | |
| backup | No | Save a .bak copy first. Default: XLSX_MCP_AUTO_BACKUP (true). | |
| reason | No | Why; kept in the change log (XLSX_MCP_CHANGE_LOG=true). | |
| recalculate | No | Recompute formulas with LibreOffice after saving. False: faster, formula results stay empty. | |
| start_column | Yes | 1-based column number (A=1, B=2, ...). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||