get_cell_styles
Retrieve formatting styles from Excel cells to identify headers, subtotals, and data roles. Filter by specific properties such as bold, font size, or background color.
Instructions
Get formatting/style info for cells in a range. Returns only cells with non-default styles. Useful for identifying headers, subtotals, and data roles by visual formatting.
Args: cell_range: Range like 'A1:D10'. workbook: Workbook name or path. Defaults to active workbook. sheet: Sheet name. Defaults to active sheet. properties: Filter specific properties (bold, italic, underline, font_name, font_size, font_color, bg_color, number_format, alignment, 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": {
"cell_range": "<cell_range>"
},
"name": "get_cell_styles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell_range | Yes | ||
| workbook | No | ||
| sheet | No | ||
| properties | No |