重命名工作表
rename_sheetRename a worksheet in an Excel file by providing the file path, current sheet name, and desired new name, ensuring the new name follows Excel's 31-character limit and excludes invalid characters.
Instructions
修改工作表名称。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newName | Yes | 工作表名称,1~31 个字符,不能包含 [ ] : * ? / \ | |
| oldName | Yes | ||
| filePath | Yes | Excel 文件的绝对路径,例如 `C:\Users\xx\报表.xlsx` 或 `/Users/xx/报表.xlsx`。支持 .xlsx / .xls / .csv |