sheets_format_cells
Format spreadsheet cells by adjusting fonts, colors, borders, and alignment.
Instructions
Apply formatting to cells including colors, fonts, borders, and alignment
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": {
"spreadsheetId": "<spreadsheetId>",
"range": "<range>"
},
"name": "sheets_format_cells"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bold | No | Whether text is bold | |
| range | Yes | The range to format (e.g., A1:C10) | |
| italic | No | Whether text is italic | |
| borders | No | Border settings for top, bottom, left, right | |
| fontSize | No | Font size | |
| textColor | No | Text color object with red, green, blue, alpha values | |
| spreadsheetId | Yes | The ID of the spreadsheet | |
| backgroundColor | No | Background color object with red, green, blue, alpha values | |
| verticalAlignment | No | Vertical alignment | |
| horizontalAlignment | No | Horizontal alignment |