apply_named_style
Apply a named built-in Excel style like 'Good' or 'Heading 1' to a target range in a worksheet, changing its formatting to match the style.
Instructions
Apply a named built-in Excel style to a range (e.g. 'Good', 'Heading 1').
Args: file_path: Workbook path. sheet_name: Worksheet name. range_str: Target range. style_name: Name of the named style to apply.
Returns: dict: Result metadata.
Notes: - Mutates formatting and depends on openpyxl named style availability.
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>",
"sheet_name": "<sheet_name>",
"range_str": "<range_str>",
"style_name": "<style_name>"
},
"name": "apply_named_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| range_str | Yes | ||
| sheet_name | Yes | ||
| style_name | Yes |