用途:在 Google Drive 中上传单个文件,并自动补充元数据,例如自动识别 MIME 类型。该技能属于 gws(Google Workspace 命令行)体系,命令形式为 gws drive +upload <file>。
主要能力:上传本地文件到 Google Drive;可用 --parent 指定父文件夹 ID;可用 --name 指定目标文件名,未指定时默认使用源文件名;MIME 类型自动检测。
使用方式:先阅读 gws-shared 技能文档以了解认证、全局参数和安全规则;若该文档缺失,运行 gws generate-skills 生成。随后执行 gws drive +upload <file>。示例:gws drive +upload ./report.pdf;gws drive +upload ./report.pdf --parent FOLDER_ID;gws drive +upload ./data.csv --name 'Sales Data.csv'。
限制与注意:这是写操作命令,执行前需与用户确认。参数中 <file> 为必填,--parent 与 --name 为可选。关于认证细节、配额、错误处理及其他限制,资料未提供。