insert_sheet_rows_cols

Insert rows or columns in a sheet.

writeGoogle Sheets, Docs & Drive

Call it

In an AI client (MCP)

tools/call
{
  "name": "insert_sheet_rows_cols",
  "arguments": {
    "spreadsheet_id": "<spreadsheet_id>",
    "sheet_name": "<sheet_name>",
    "dimension": "<dimension>",
    "start_index": 1,
    "end_index": 1
  }
}

From code (Tool API)

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

Arguments

NameTypeDescription
spreadsheet_idrequiredstringthe spreadsheet ID (from its URL or get_sheet_metadata).
sheet_namerequiredstringthe tab name.
dimensionrequiredstring'ROWS' or 'COLUMNS'.
start_indexrequiredintegerStart index (0-based).
end_indexrequiredintegerEnd index (exclusive).

Result

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

  • Success confirmation.

Example

insert_sheet_rows_cols("1ABC...", "Sheet1", "ROWS", 5, 10)  # Insert 5 rows at index 5

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude