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
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) |