Merge cells
merge_cellsMerge or unmerge cells in a Google Sheets range to create headers or organize data. Choose merge type (all, rows, columns) and action.
Instructions
Merge or unmerge cells in a range.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | A1 range, e.g. "Sheet1!A1:D20", "'My Tab'!B:B", or a tab name | |
| action | No | merge | |
| account | No | Google account to use: an email or unique part of one (e.g. "acme.com"). Default: the account that can open the spreadsheet, else the default account. | |
| merge_type | No | MERGE_ALL | |
| spreadsheet | Yes | Google Sheets link or spreadsheet ID. The name of a spreadsheet used with Sheets MCP before also works |