重命名工作表
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
修改工作表名称。
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>",
"oldName": "<oldName>",
"newName": "<newName>"
},
"name": "rename_sheet"
}
}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 |