add_excel_sheet
Add a new empty sheet to an existing Excel workbook, specifying the sheet name and optional insertion position.
Instructions
Add a new empty sheet to an existing workbook.
@param file_path: Absolute path to the .xlsx/.xlsm file. @param sheet_name: Name for the new sheet; must not already exist. @param position: 0-based index to insert at. None = append at the end. @return: Confirmation with the updated sheet list.
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>",
"sheet_name": "<sheet_name>"
},
"name": "add_excel_sheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| position | No | ||
| file_path | Yes | ||
| sheet_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |