360 Secure SkillHub
360 安全技能中心

recipe-sync-contacts-to-sheet

通过 gws 命令行读取 Google Contacts 目录联系人,在 Google Sheets 指定表格中写入表头并逐行追加姓名、邮箱、电话;执行前需加载 gws-people 与 gws-sheets 两个前置技能,按固定步骤依次完成导出。

分类:效率
googleworkspace
热度 72.61
最近更新 2026-10-18 17:15:37

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add googleworkspace/cli/recipe-sync-contacts-to-sheet
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
recipe-sync-contacts-to-sheet
description
Export Google Contacts directory to a Google Sheets spreadsheet.
metadata
{"version":"0.22.5","openclaw":{"category":"recipe","domain":"productivity","requires":{"bins":["gws"],"skills":["gws-people","gws-sheets"]}}}

Export Google Contacts to Sheets

PREREQUISITE: Load the following skills to execute this recipe: gws-people, gws-sheets

Export Google Contacts directory to a Google Sheets spreadsheet.

Steps

  1. List contacts: gws people people listDirectoryPeople --params '{"readMask": "names,emailAddresses,phoneNumbers", "sources": ["DIRECTORY_SOURCE_TYPE_DOMAIN_PROFILE"], "pageSize": 100}' --format json
  2. Create a sheet: gws sheets +append --spreadsheet SHEET_ID --range 'Contacts' --values '["Name", "Email", "Phone"]'
  3. Append each contact row: gws sheets +append --spreadsheet SHEET_ID --range 'Contacts' --values '["Jane Doe", "jane@company.com", "+1-555-0100"]'