sheets_add_conditional_format
Add conditional formatting rules to Google Sheets to automatically highlight cells based on specified conditions like number greater than or text contains.
Instructions
Add conditional formatting. rule_type: NUMBER_GREATER, TEXT_CONTAINS, CUSTOM_FORMULA, BLANK, etc.
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_id": "<sheet_id>",
"start_row": "<start_row>",
"end_row": "<end_row>",
"start_col": "<start_col>",
"end_col": "<end_col>",
"rule_type": "<rule_type>",
"values": "<values>"
},
"name": "sheets_add_conditional_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | Yes | ||
| end_col | Yes | ||
| end_row | Yes | ||
| bg_color | No | #FF0000 | |
| sheet_id | Yes | ||
| rule_type | Yes | ||
| start_col | Yes | ||
| start_row | Yes | ||
| spreadsheet_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |