Delete rows
delete_rowsDeletes one or more rows from an Excel sheet beginning at a specified row, shifting lower rows up to close the gap.
Instructions
Delete rows starting at start_row; rows below move up. 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_row": "<start_row>"
},
"name": "delete_rows"
}
}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). | |
| start_row | Yes | 1-based row number. | |
| recalculate | No | Recompute formulas with LibreOffice after saving. False: faster, formula results stay empty. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||