excel_set_gradient_fill
Apply a gradient fill to an Excel worksheet cell range by setting start and end colors and optional direction, enabling programmatic spreadsheet formatting.
Instructions
Apply gradient fill
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": {
"filename": "<filename>",
"worksheet": "<worksheet>",
"startCell": "<startCell>",
"color1": "<color1>",
"color2": "<color2>"
},
"name": "excel_set_gradient_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Type (horizontal/vertical/diagonal) | |
| color1 | Yes | Start color hex | |
| color2 | Yes | End color hex | |
| endCell | No | End cell (optional) | |
| filename | Yes | Opened workbook name | |
| startCell | Yes | Start cell (e.g., A1) | |
| worksheet | Yes | Worksheet name |