create_workbook
Create a new Excel workbook at a specified path, with optional initial sheets, and automatically create parent directories if needed.
Instructions
Create a new Excel workbook at file_path with optional initial sheets.
Args: file_path: Destination path for the new workbook. sheet_names: Optional list of sheet names to create. sheet_name: Optional single sheet name (legacy convenience).
Returns: WorkbookCreatedResult: Contains file path and sheet information.
Notes: - Mutates filesystem by creating a new .xlsx. Parent directory will be created if permitted by utils.
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>"
},
"name": "create_workbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| sheet_name | No | ||
| sheet_names | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheets | Yes | Names of sheets in the new workbook. | |
| file_path | Yes | Absolute path of the created workbook file. |