format_cells
Apply formatting to a range of cells in Google Sheets. Set bold, italic, font size, font color, background color, number format, and alignment.
Instructions
Apply formatting to a range of cells.
Args: spreadsheet_id: The ID of the spreadsheet sheet: Sheet/tab name range: A1 notation range (e.g., 'A1:C10') bold: Make text bold italic: Make text italic font_size: Font size in pt font_color: Hex color for text (e.g., '#FF0000') background_color: Hex color for cell background (e.g., '#FFFF00') number_format: Number format pattern (e.g., '#,##0.00', '0%', 'yyyy-mm-dd') horizontal_alignment: 'LEFT', 'CENTER', or 'RIGHT'
Returns: Result of the formatting operation
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spreadsheet_id | Yes | ||
| sheet | Yes | ||
| range | Yes | ||
| bold | No | ||
| italic | No | ||
| font_size | No | ||
| font_color | No | ||
| background_color | No | ||
| number_format | No | ||
| horizontal_alignment | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |