跳到主要内容
哒哒星球DADA PLANET

Skill · 已公开版本

recipe-copy-sheet-for-new-month · 复制 Google 表格模板到新月份

把 Google Sheets 中的月度跟踪模板工作表复制一份,并重命名为新的月份,用于延续每月记录。

先看看示例

作者提供的示例,实际效果取决于你的输入和使用工具。

输入

把 1 月跟踪模板复制为 2 月工作表:先获取表格详情确认模板 sheetId,复制到同一表格,再将新标签改名为 February 2025。

输出

预期交付:同一电子表格中新增一个已重命名的工作表副本。(编辑说明,非实际运行结果)

方法说明

---
name: recipe-copy-sheet-for-new-month
description: "Duplicate a Google Sheets template tab for a new month of tracking."
metadata:
  version: 0.22.5
  openclaw:
    category: "recipe"
    domain: "productivity"
    requires:
      bins:
        - gws
      skills:
        - gws-sheets
---

# Copy a Google Sheet for a New Month

> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-sheets`

Duplicate a Google Sheets template tab for a new month of tracking.

## Steps

1. Get spreadsheet details: `gws sheets spreadsheets get --params '{"spreadsheetId": "SHEET_ID"}'`
2. Copy the template sheet: `gws sheets spreadsheets sheets copyTo --params '{"spreadsheetId": "SHEET_ID", "sheetId": 0}' --json '{"destinationSpreadsheetId": "SHEET_ID"}'`
3. Rename the new tab: `gws sheets spreadsheets batchUpdate --params '{"spreadsheetId": "SHEET_ID"}' --json '{"requests": [{"updateSheetProperties": {"properties": {"sheetId": 123, "title": "February 2025"}, "fields": "title"}}]}'`