format_excel_cells
Apply formatting to Excel cells in .xlsx files: set bold, font size, color, background, alignment, and borders for a specified cell range.
Instructions
Apply formatting to Excel cells.
Args: path: Path to the .xlsx file sheet_name: Sheet name cell_range: Cell range (e.g., 'A1:C3') bold: Bold text font_size: Font size in points font_color: Hex color (e.g., 'FF0000') bg_color: Background hex color alignment: left, center, right border: Add thin border
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": {
"path": "<path>",
"sheet_name": "<sheet_name>",
"cell_range": "<cell_range>"
},
"name": "format_excel_cells"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bold | No | ||
| path | Yes | ||
| border | No | ||
| bg_color | No | ||
| alignment | No | ||
| font_size | No | ||
| cell_range | Yes | ||
| font_color | No | ||
| sheet_name | Yes |