Format cells
sheets_formatApply Google Sheets formatting—number formats, fonts, colors, borders, alignment, wrapping, merges, frozen panes, and sizing—while preserving unmentioned formatting; preview with dryRun.
Instructions
Number formats, fonts, colours, borders, alignment, wrapping, merges, frozen panes, and column/row sizing. Uses a precise field mask, so formatting you do not mention is left alone. Supports dryRun.
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>",
"operations": "<operations>"
},
"name": "sheets_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | When true, returns the exact API request that would be sent plus an impact summary, and sends nothing. | |
| account | No | Google account to act as. Optional when one account is authorised or a default is set; required otherwise. | |
| operations | Yes | Formatting operations, applied in order in one batch. | |
| spreadsheet | Yes | Spreadsheet URL or file id. Both accepted; a URL has its id extracted. |