apply_conditional_formatting
Apply conditional formatting to a Google Sheets range by defining rules with condition types and custom text/background colors.
Instructions
Apply conditional formatting to a range in Google Spreadsheet
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": {
"spreadsheet_id": "<spreadsheet_id>",
"sheet_name": "<sheet_name>",
"range": "<range>",
"rules": "<rules>"
},
"name": "apply_conditional_formatting"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | Range to apply formatting (e.g., "A1:E10") | |
| rules | Yes | Array of conditional formatting rules | |
| sheet_name | Yes | Name of the sheet | |
| spreadsheet_id | Yes | Google Spreadsheet ID |