set_cell_style
Apply cell styling like bold, italic, font size, colors, alignment, and borders to a Google Sheets range. Use dry-run to preview changes without modifying the sheet.
Instructions
Style cells. Only the parameters you pass are changed; the rest is preserved.
Formatting changes are NOT rollback-capable (use Sheets version history).
Args: spreadsheet_id_or_url: Full Sheets URL or bare spreadsheet ID. sheet: Sheet name OR gid string. range: Bare A1 range without sheet prefix. bold: Bold on/off. italic: Italic on/off. font_size: Font size in points. fg_color: Text color '#RRGGBB'. bg_color: Background color '#RRGGBB'. h_align: 'left' | 'center' | 'right'. borders: Optional {"sides": ["top","bottom","left","right","innerHorizontal","innerVertical"], "style": "SOLID|SOLID_MEDIUM|SOLID_THICK|DOTTED|DASHED|DOUBLE|NONE", "color": "#RRGGBB"}. dry_run: If true, return the execution plan without changing anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bold | No | ||
| range | Yes | ||
| sheet | Yes | ||
| italic | No | ||
| borders | No | ||
| dry_run | No | ||
| h_align | No | ||
| bg_color | No | ||
| fg_color | No | ||
| font_size | No | ||
| spreadsheet_id_or_url | Yes |