Rename sheet
rename_sheetRename a worksheet in an .xlsx file by specifying the current and new name. Use it to fix sheet labels; note that formulas referencing the old name are not updated and may break.
Instructions
Rename a sheet. Formulas in other sheets that use the old name are NOT updated and will break.
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": {
"old_name": "<old_name>",
"new_name": "<new_name>"
},
"name": "rename_sheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File path or preloaded name (list_configured_files). Omit if only one file is preloaded. | |
| 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). | |
| new_name | Yes | New sheet name (1-31 chars, none of \ / ? * : [ ]). | |
| old_name | Yes | Current sheet name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||