设置单元格样式
format_cellsStyles a cell range in an Excel sheet by setting font, fill color, borders, alignment, and number format—only modifying properties you specify while leaving others unchanged.
Instructions
设置一个区域的字体、填充色、边框、对齐、数字格式,让表格好看。只传想改的项,没传的不动。csv 文件不支持样式。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | 矩形区域,如 `A1:D20` | |
| style | Yes | ||
| filePath | Yes | Excel 文件的绝对路径,例如 `C:\Users\xx\报表.xlsx` 或 `/Users/xx/报表.xlsx`。支持 .xlsx / .xls / .csv | |
| sheetName | Yes |