add_sheet
Add a new worksheet with data to an existing Excel file, specifying sheet name, data arrays, optional headers, and insertion position.
Instructions
Add a new sheet to an existing Excel file
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>",
"sheetName": "<sheetName>",
"data": "<data>"
},
"name": "add_sheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the existing Excel file (.xlsx or .xls) | |
| sheetName | Yes | Name for the new sheet | |
| data | Yes | Array of arrays representing rows of data | |
| headers | No | Optional headers for the first row | |
| position | No | Position to insert the sheet (0-based index, optional) |