format_cells
Apply formatting to Excel cells including fonts, colors, borders, alignment, and number formats to improve data presentation and readability.
Instructions
Apply formatting to Excel cells (fonts, colors, borders, alignment)
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>",
"range": "<range>",
"styling": "<styling>"
},
"name": "format_cells"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the Excel file (.xlsx or .xls) | |
| range | Yes | Cell range in A1 notation (e.g., "A1", "A1:C5", "B2:D10") | |
| styling | Yes | Formatting options to apply | |
| sheet | No | Sheet name (optional, defaults to first sheet) |