360 Secure SkillHub
360 安全技能中心

Recipe Bulk Download Folder

核心功能:批量列出指定Google Drive文件夹内所有文件,下载普通文件,将Google Docs导出为PDF。典型场景:备份Drive文件夹内容、批量获取共享文件夹文件。需依赖gws工具及gws-drive技能,输入文件夹ID,输出为本地存储的对应文件与PDF。

googleworkspace-bot
googleworkspace-bot
热度 73.67
最近更新 2026-05-11 17:29:17
分类:自动化依赖:第三方 API / 读写文件应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add recipe-bulk-download-folder
Metadata
name
recipe-bulk-download-folder
description
List and download all files from a Google Drive folder.
metadata
{"version":"0.22.5","openclaw":{"category":"recipe","domain":"productivity","requires":{"bins":["gws"],"skills":["gws-drive"]}}}

Bulk Download Drive Folder

PREREQUISITE: Load the following skills to execute this recipe: gws-drive

List and download all files from a Google Drive folder.

Steps

  1. List files in folder: gws drive files list --params '{"q": "'\''FOLDER_ID'\'' in parents"}' --format json
  2. Download each file: gws drive files get --params '{"fileId": "FILE_ID", "alt": "media"}' -o filename.ext
  3. Export Google Docs as PDF: gws drive files export --params '{"fileId": "FILE_ID", "mimeType": "application/pdf"}' -o document.pdf