copy_sheet_format

Copy formatting only (no values) from source range to target range.

writeGoogle Sheets, Docs & Drive

Sheets paste-special equivalent — use this to propagate a formatted block (header style, conditional fills) to a new region without clobbering its values.

Call it

In an AI client (MCP)

tools/call
{
  "name": "copy_sheet_format",
  "arguments": {
    "spreadsheet_id": "<spreadsheet_id>",
    "source_range": "<source_range>",
    "target_range": "<target_range>"
  }
}

From code (Tool API)

curl -X POST https://api.sellersheetai.com/api/v1/tools/copy_sheet_format \
  -H "Authorization: Bearer $SELLERSHEET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"spreadsheet_id":"<spreadsheet_id>","source_range":"<source_range>","target_range":"<target_range>"}'
Early access — the Tool API is open on request, contact us.

Arguments

NameTypeDescription
spreadsheet_idrequiredstringthe spreadsheet ID (from its URL or get_sheet_metadata).
source_rangerequiredstringA1 source range (e.g. 'Template!A1:D1').
target_rangerequiredstringA1 target range (e.g. 'Report!A1:D1').

Result

Every tool answers {notification, data, human_action}; data carries:

  • data.sourceSheetId / data.targetSheetId — the tabs involved.

Gotchas

  • A target that is a multiple of the source's height or width repeats the format, so one header row's style fills 'Report!A2:D500' in one call. A smaller target still receives the whole source. Source and target must be in the same spreadsheet. Every range here must name its tab and both ends ('Tab!A1:D10'); a range without a tab ('A1:D10') or with an open end ('Tab!A:D') is refused.

Example

copy_sheet_format("1ABC...", "Template!A1:D1", "Q1 Report!A1:D1")

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude