跳到正文
Skillpedia
写作32k · #9166

gws-forms

它能做什么

这个命令可以帮你创建、修改和管理 Google Forms。你可以新建表单、更改发布设置,还可以获取现有表单的信息。

适用场景

  • ✓创建新表单以收集信息时。
  • ✓更改谁可以回复表单时。
  • ✓获取已有表单的详细信息时。

技能链接

https://github.com/googleworkspace/cli/blob/main/skills/gws-forms/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/googleworkspace/cli/blob/main/skills/gws-forms/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“创建一个名为“客户满意度调查”的表单,包含两个问题:“你对我们的服务评分是多少?”和“你会向别人推荐我们的服务吗?””

每周 5 个新技能,1 分钟读完。

工作原理

它会连接到 Google Forms,执行你要求的操作。你需要指定要操作的表单,以及想要做什么,比如创建或修改。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

forms (v1)

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

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:

# 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.

常见问题

怎么创建表单?

使用 'create' 命令并提供表单标题。如果要添加问题,之后还需要使用另一个命令。

我可以修改现有表单中的问题吗?

可以,你可以使用 'batchUpdate' 命令一次完成多项修改,包括添加或修改问题。

什么是“发布设置”?

发布设置决定了表单如何分享,以及谁可以回复它。

详情

作者的原始描述

Read and write Google Forms.

repo: googleworkspace/cli

热度

GitHub 星标
32k
排名
#9166
许可证
Apache-2.0
更新时间
2026/10/6

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能