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

Skill · 已公开版本

gws-forms · 把问卷题目整理成可核对的表单

先明确题目、必填和发布范围,再通过 Forms 的创建、更新与回读检查表单是否符合原意。

先看看示例

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

输入

编辑材料:标题“周末分享会时段”;仅需选择周六上午或周日下午,必须选1个;可选填写想听的主题。不要收姓名和电话。

输出

编辑示例 · 未运行
周末分享会时段

  1. 你方便参加哪个时段?(单选,必填)
  • 周六上午
  • 周日下午
  1. 你希望讨论什么主题?(简答,选填)

不设置姓名或电话题。发布范围尚未提供,当前仅为题目稿,未建立或发布表单。

方法说明

---
name: gws-forms
description: "Read and write Google Forms."
metadata:
  version: 0.22.5
  openclaw:
    category: "productivity"
    requires:
      bins:
        - gws
    cliHelp: "gws forms --help"
---

# forms (v1)

> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.

```bash
gws forms <resource> <method> [flags]
```

## API Resources

### forms

  - `batchUpdate` — Change the form with a batch of updates.
  - `create` — Create a new form using the title given in the provided form message in the request. *Important:* Only the form.info.title and form.info.document_title fields are copied to the new form. All other fields including the form description, items and settings are disallowed. To create a new form and add items, you must first call forms.create to create an empty form with a title and (optional) document title, and then call forms.update to add the items.
  - `get` — Get a form.
  - `setPublishSettings` — Updates the publish settings of a form. Legacy forms aren't supported because they don't have the `publish_settings` field.
  - `responses` — Operations on the 'responses' resource
  - `watches` — Operations on the 'watches' resource

## Discovering Commands

Before calling any API method, inspect it:

```bash
# Browse resources and methods
gws forms --help

# Inspect a method's required params, types, and defaults
gws schema forms.<resource>.<method>
```

Use `gws schema` output to build your `--params` and `--json` flags.