sheets_conditional_format
Apply conditional formatting rules to Google Sheets cells based on numeric comparisons, text content, or custom formulas to highlight data patterns automatically.
Instructions
Add conditional formatting. rule_type: NUMBER_GREATER, NUMBER_LESS, NUMBER_EQ, TEXT_CONTAINS, TEXT_NOT_CONTAINS, CUSTOM_FORMULA. For CUSTOM_FORMULA, condition_value is the formula (e.g., '=A1>8').
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": "<spreadsheet>",
"sheet_name": "<sheet_name>",
"range_a1": "<range_a1>",
"rule_type": "<rule_type>",
"condition_value": "<condition_value>"
},
"name": "sheets_conditional_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spreadsheet | Yes | ||
| sheet_name | Yes | ||
| range_a1 | Yes | ||
| rule_type | Yes | ||
| condition_value | Yes | ||
| bg_color | No | #ea9999 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |