format_range
Applies font, fill, alignment, borders, number formats, and conditional formatting to a specified cell range in an Excel sheet, with optional dry-run preview.
Instructions
Apply formatting to a range of cells. Colors accept RRGGBB, #RRGGBB, AARRGGBB, or #AARRGGBB.
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>",
"sheet_name": "<sheet_name>",
"start_cell": "<start_cell>"
},
"name": "format_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bold | No | ||
| italic | No | ||
| dry_run | No | ||
| bg_color | No | ||
| end_cell | No | ||
| filepath | Yes | Reuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing. | |
| alignment | No | ||
| font_size | No | ||
| underline | No | ||
| wrap_text | No | ||
| font_color | No | ||
| protection | No | ||
| sheet_name | Yes | ||
| start_cell | Yes | ||
| merge_cells | No | ||
| border_color | No | ||
| border_style | No | ||
| number_format | No | ||
| include_changes | No | ||
| conditional_format | No |