From b6457415254c212c4f02b071aff94a7664e9a406 Mon Sep 17 00:00:00 2001 From: "claude[bot]" Date: Sat, 25 Apr 2026 12:19:37 +0000 Subject: [PATCH] fix: replace nonexistent Forms API list method with Drive files list The Google Forms API v1 does not expose a list method on the forms resource. The recipe step `gws forms forms list` will always fail. Replace it with a Drive files list query filtered by the Forms MIME type, and add gws-drive as a prerequisite skill in both the frontmatter and the PREREQUISITE line. Co-Authored-By: Claude Code --- .changeset/fix-collect-form-responses-list.md | 5 +++++ skills/recipe-collect-form-responses/SKILL.md | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .changeset/fix-collect-form-responses-list.md diff --git a/.changeset/fix-collect-form-responses-list.md b/.changeset/fix-collect-form-responses-list.md new file mode 100644 index 00000000..e24258b8 --- /dev/null +++ b/.changeset/fix-collect-form-responses-list.md @@ -0,0 +1,5 @@ +--- +"@googleworkspace/cli": patch +--- + +Fix recipe-collect-form-responses to use Drive API to list forms (Forms API has no list method) diff --git a/skills/recipe-collect-form-responses/SKILL.md b/skills/recipe-collect-form-responses/SKILL.md index 50e44d38..be98b25d 100644 --- a/skills/recipe-collect-form-responses/SKILL.md +++ b/skills/recipe-collect-form-responses/SKILL.md @@ -11,17 +11,18 @@ metadata: - gws skills: - gws-forms + - gws-drive --- # Check Form Responses -> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-forms` +> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-forms`, `gws-drive` Retrieve and review responses from a Google Form. ## Steps -1. List forms: `gws forms forms list` (if you don't have the form ID) +1. Find your form ID: `gws drive files list --params '{"q": "mimeType = \"application/vnd.google-apps.form\""}' --format table` 2. Get form details: `gws forms forms get --params '{"formId": "FORM_ID"}'` 3. Get responses: `gws forms forms responses list --params '{"formId": "FORM_ID"}' --format table`