copyFormatting
Copies formatting only—bold, colors, borders, and number formats—from a source range to a destination range in the same Google Sheets spreadsheet, leaving values unchanged.
Instructions
Copies formatting (not values) from a source range to a destination range within the same spreadsheet. Copies bold, colors, borders, number formats, etc. CopyPaste expands a smaller destination to the source size, so on modern runtimes readCellFormat must cover that complete effective destination range.
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>",
"sourceSheetName": "<sourceSheetName>",
"sourceRange": "<sourceRange>",
"destinationSheetName": "<destinationSheetName>",
"destinationRange": "<destinationRange>"
},
"name": "copyFormatting"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| readHandle | No | Capability returned by the corresponding read tool. Required on the modern MCP runtime, including modern stdio. | |
| sourceRange | Yes | A1 notation for the source range (e.g., "A1:D10"). Do not include the sheet name — use sourceSheetName instead. | |
| spreadsheetId | Yes | The spreadsheet ID — the long string between /d/ and /edit in a Google Sheets URL. | |
| sourceSheetName | Yes | Source sheet/tab name (e.g., "Sheet1"). | |
| destinationRange | Yes | A1 notation for the destination range (e.g., "A1:D10"). Do not include the sheet name — use destinationSheetName instead. | |
| destinationSheetName | Yes | Destination sheet/tab name (e.g., "Sheet2"). |