excel_manage_sheets
Add, rename, delete, or copy sheets in an Excel workbook, with optional backup before modifications.
Instructions
Manage sheets in an Excel workbook (add, rename, delete, copy).
Args:
file_path: Path to the Excel file.
action: Action to perform: 'add', 'rename', 'delete', or 'copy'.
sheet_name: Target sheet name.
new_name: New name for the sheet (required for 'rename' and 'copy').
backup: If True, create a backup of the original file before modifying.
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": {
"file_path": "<file_path>",
"action": "<action>",
"sheet_name": "<sheet_name>"
},
"name": "excel_manage_sheets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| backup | No | ||
| new_name | No | ||
| file_path | Yes | ||
| sheet_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |