{
  "schemaVersion": "1.0",
  "item": {
    "slug": "google-contacts",
    "name": "Google Contacts",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/byungkyu/google-contacts",
    "canonicalUrl": "https://clawhub.ai/byungkyu/google-contacts",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/google-contacts",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=google-contacts",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "LICENSE.txt"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/google-contacts"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/google-contacts",
    "agentPageUrl": "https://openagent3.xyz/skills/google-contacts/agent",
    "manifestUrl": "https://openagent3.xyz/skills/google-contacts/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/google-contacts/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Google Contacts",
        "body": "Access the Google People API with managed OAuth authentication. Manage contacts, contact groups, and search your address book."
      },
      {
        "title": "Quick Start",
        "body": "# List contacts\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/google-contacts/v1/people/me/connections?personFields=names,emailAddresses,phoneNumbers&pageSize=10')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Base URL",
        "body": "https://gateway.maton.ai/google-contacts/{native-api-path}\n\nReplace {native-api-path} with the actual Google People API endpoint path. The gateway proxies requests to people.googleapis.com and automatically injects your OAuth token."
      },
      {
        "title": "Authentication",
        "body": "All requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\""
      },
      {
        "title": "Getting Your API Key",
        "body": "Sign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key"
      },
      {
        "title": "Connection Management",
        "body": "Manage your Google Contacts OAuth connections at https://ctrl.maton.ai."
      },
      {
        "title": "List Connections",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=google-contacts&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Create Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'google-contacts'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Get Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"21fd90f9-5935-43cd-b6c8-bde9d915ca80\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2025-12-08T07:20:53.488460Z\",\n    \"last_updated_time\": \"2026-01-31T20:03:32.593153Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"google-contacts\",\n    \"metadata\": {}\n  }\n}\n\nOpen the returned url in a browser to complete OAuth authorization."
      },
      {
        "title": "Delete Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Specifying Connection",
        "body": "If you have multiple Google Contacts connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/google-contacts/v1/people/me/connections?personFields=names&pageSize=10')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '21fd90f9-5935-43cd-b6c8-bde9d915ca80')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nIf omitted, the gateway uses the default (oldest) active connection."
      },
      {
        "title": "Contact Operations",
        "body": "List Contacts\n\nGET /google-contacts/v1/people/me/connections?personFields=names,emailAddresses,phoneNumbers&pageSize=100\n\nQuery Parameters:\n\npersonFields (required): Comma-separated list of fields to return (see Person Fields section)\npageSize: Number of contacts to return (max 1000, default 100)\npageToken: Token for pagination\nsortOrder: LAST_MODIFIED_ASCENDING, LAST_MODIFIED_DESCENDING, FIRST_NAME_ASCENDING, or LAST_NAME_ASCENDING\n\nResponse:\n\n{\n  \"connections\": [\n    {\n      \"resourceName\": \"people/c1234567890\",\n      \"names\": [{\"displayName\": \"John Doe\", \"givenName\": \"John\", \"familyName\": \"Doe\"}],\n      \"emailAddresses\": [{\"value\": \"john@example.com\"}],\n      \"phoneNumbers\": [{\"value\": \"+1-555-0123\"}]\n    }\n  ],\n  \"totalPeople\": 1,\n  \"totalItems\": 1,\n  \"nextPageToken\": \"...\"\n}\n\nGet Contact\n\nGET /google-contacts/v1/people/{resourceName}?personFields=names,emailAddresses,phoneNumbers\n\nUse the resource name from list or create operations (e.g., people/c1234567890).\n\nCreate Contact\n\nPOST /google-contacts/v1/people:createContact\nContent-Type: application/json\n\n{\n  \"names\": [{\"givenName\": \"John\", \"familyName\": \"Doe\"}],\n  \"emailAddresses\": [{\"value\": \"john@example.com\"}],\n  \"phoneNumbers\": [{\"value\": \"+1-555-0123\"}],\n  \"organizations\": [{\"name\": \"Acme Corp\", \"title\": \"Engineer\"}]\n}\n\nUpdate Contact\n\nPATCH /google-contacts/v1/people/{resourceName}:updateContact?updatePersonFields=names,emailAddresses\nContent-Type: application/json\n\n{\n  \"etag\": \"%EgcBAgkLLjc9...\",\n  \"names\": [{\"givenName\": \"John\", \"familyName\": \"Smith\"}],\n  \"emailAddresses\": [{\"value\": \"john.smith@example.com\"}]\n}\n\nNote: Include the etag from the get/list response to ensure you're updating the latest version.\n\nDelete Contact\n\nDELETE /google-contacts/v1/people/{resourceName}:deleteContact\n\nBatch Get Contacts\n\nGET /google-contacts/v1/people:batchGet?resourceNames=people/c123&resourceNames=people/c456&personFields=names,emailAddresses\n\nBatch Create Contacts\n\nPOST /google-contacts/v1/people:batchCreateContacts\nContent-Type: application/json\n\n{\n  \"contacts\": [\n    {\n      \"contactPerson\": {\n        \"names\": [{\"givenName\": \"Alice\", \"familyName\": \"Smith\"}],\n        \"emailAddresses\": [{\"value\": \"alice@example.com\"}]\n      }\n    },\n    {\n      \"contactPerson\": {\n        \"names\": [{\"givenName\": \"Bob\", \"familyName\": \"Jones\"}],\n        \"emailAddresses\": [{\"value\": \"bob@example.com\"}]\n      }\n    }\n  ],\n  \"readMask\": \"names,emailAddresses\"\n}\n\nBatch Delete Contacts\n\nPOST /google-contacts/v1/people:batchDeleteContacts\nContent-Type: application/json\n\n{\n  \"resourceNames\": [\"people/c123\", \"people/c456\"]\n}\n\nSearch Contacts\n\nGET /google-contacts/v1/people:searchContacts?query=John&readMask=names,emailAddresses\n\nNote: Search results may have a slight delay for newly created contacts due to indexing."
      },
      {
        "title": "Contact Group Operations",
        "body": "List Contact Groups\n\nGET /google-contacts/v1/contactGroups?pageSize=100\n\nResponse:\n\n{\n  \"contactGroups\": [\n    {\n      \"resourceName\": \"contactGroups/starred\",\n      \"groupType\": \"SYSTEM_CONTACT_GROUP\",\n      \"name\": \"starred\",\n      \"formattedName\": \"Starred\"\n    },\n    {\n      \"resourceName\": \"contactGroups/abc123\",\n      \"groupType\": \"USER_CONTACT_GROUP\",\n      \"name\": \"Work\",\n      \"formattedName\": \"Work\",\n      \"memberCount\": 5\n    }\n  ],\n  \"totalItems\": 2\n}\n\nGet Contact Group\n\nGET /google-contacts/v1/contactGroups/{resourceName}?maxMembers=100\n\nUse contactGroups/starred, contactGroups/family, etc. for system groups, or the resource name for user groups.\n\nCreate Contact Group\n\nPOST /google-contacts/v1/contactGroups\nContent-Type: application/json\n\n{\n  \"contactGroup\": {\n    \"name\": \"Work Contacts\"\n  }\n}\n\nDelete Contact Group\n\nDELETE /google-contacts/v1/contactGroups/{resourceName}?deleteContacts=false\n\nSet deleteContacts=true to also delete the contacts in the group.\n\nBatch Get Contact Groups\n\nGET /google-contacts/v1/contactGroups:batchGet?resourceNames=contactGroups/starred&resourceNames=contactGroups/family\n\nModify Group Members\n\nAdd or remove contacts from a group:\n\nPOST /google-contacts/v1/contactGroups/{resourceName}/members:modify\nContent-Type: application/json\n\n{\n  \"resourceNamesToAdd\": [\"people/c123\", \"people/c456\"],\n  \"resourceNamesToRemove\": [\"people/c789\"]\n}"
      },
      {
        "title": "Other Contacts",
        "body": "Other contacts are people you've interacted with (e.g., via email) but haven't explicitly added to your contacts.\n\nList Other Contacts\n\nGET /google-contacts/v1/otherContacts?readMask=names,emailAddresses&pageSize=100\n\nCopy Other Contact to My Contacts\n\nPOST /google-contacts/v1/{resourceName}:copyOtherContactToMyContactsGroup\nContent-Type: application/json\n\n{\n  \"copyMask\": \"names,emailAddresses,phoneNumbers\"\n}"
      },
      {
        "title": "Person Fields",
        "body": "Use these fields with personFields or readMask parameters:\n\nFieldDescriptionnamesDisplay name, given name, family nameemailAddressesEmail addresses with typephoneNumbersPhone numbers with typeaddressesPostal addressesorganizationsCompany, title, departmentbiographiesBio/notes about the personbirthdaysBirthday informationurlsWebsite URLsphotosProfile photosmembershipsContact group membershipsmetadataSource and update information\n\nMultiple fields: personFields=names,emailAddresses,phoneNumbers,organizations"
      },
      {
        "title": "Pagination",
        "body": "Use pageSize and pageToken for pagination:\n\nGET /google-contacts/v1/people/me/connections?personFields=names&pageSize=100&pageToken=NEXT_PAGE_TOKEN\n\nResponse includes pagination info:\n\n{\n  \"connections\": [...],\n  \"totalPeople\": 500,\n  \"nextPageToken\": \"...\",\n  \"nextSyncToken\": \"...\"\n}\n\nContinue fetching with pageToken until nextPageToken is not returned."
      },
      {
        "title": "JavaScript",
        "body": "const response = await fetch(\n  'https://gateway.maton.ai/google-contacts/v1/people/me/connections?personFields=names,emailAddresses&pageSize=50',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();"
      },
      {
        "title": "Python",
        "body": "import os\nimport requests\n\nresponse = requests.get(\n    'https://gateway.maton.ai/google-contacts/v1/people/me/connections',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'},\n    params={\n        'personFields': 'names,emailAddresses,phoneNumbers',\n        'pageSize': 50\n    }\n)\ndata = response.json()"
      },
      {
        "title": "Notes",
        "body": "Resource names for contacts follow the pattern people/c{id} (e.g., people/c1234567890)\nResource names for contact groups follow the pattern contactGroups/{id} (e.g., contactGroups/abc123)\nSystem contact groups include: starred, friends, family, coworkers, myContacts, all, blocked\nThe personFields parameter is required for most read operations\nWhen updating contacts, include the etag to prevent overwriting concurrent changes\nMutate requests for the same user should be sent sequentially to avoid increased latency and failures\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets to disable glob parsing\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments"
      },
      {
        "title": "Error Handling",
        "body": "StatusMeaning400Missing Google Contacts connection or invalid request401Invalid or missing Maton API key403Permission denied (check OAuth scopes)404Contact or group not found429Rate limited4xx/5xxPassthrough error from Google People API"
      },
      {
        "title": "Troubleshooting: API Key Issues",
        "body": "Check that the MATON_API_KEY environment variable is set:\n\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Troubleshooting: Invalid App Name",
        "body": "Ensure your URL path starts with google-contacts. For example:\n\nCorrect: https://gateway.maton.ai/google-contacts/v1/people/me/connections\nIncorrect: https://gateway.maton.ai/v1/people/me/connections"
      },
      {
        "title": "Resources",
        "body": "Google People API Overview\nPeople Resource\nContact Groups Resource\nPerson Fields Reference\nMaton Community\nMaton Support"
      }
    ],
    "body": "Google Contacts\n\nAccess the Google People API with managed OAuth authentication. Manage contacts, contact groups, and search your address book.\n\nQuick Start\n# List contacts\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/google-contacts/v1/people/me/connections?personFields=names,emailAddresses,phoneNumbers&pageSize=10')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nBase URL\nhttps://gateway.maton.ai/google-contacts/{native-api-path}\n\n\nReplace {native-api-path} with the actual Google People API endpoint path. The gateway proxies requests to people.googleapis.com and automatically injects your OAuth token.\n\nAuthentication\n\nAll requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n\nGetting Your API Key\nSign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key\nConnection Management\n\nManage your Google Contacts OAuth connections at https://ctrl.maton.ai.\n\nList Connections\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=google-contacts&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Connection\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'google-contacts'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"21fd90f9-5935-43cd-b6c8-bde9d915ca80\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2025-12-08T07:20:53.488460Z\",\n    \"last_updated_time\": \"2026-01-31T20:03:32.593153Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"google-contacts\",\n    \"metadata\": {}\n  }\n}\n\n\nOpen the returned url in a browser to complete OAuth authorization.\n\nDelete Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nSpecifying Connection\n\nIf you have multiple Google Contacts connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/google-contacts/v1/people/me/connections?personFields=names&pageSize=10')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '21fd90f9-5935-43cd-b6c8-bde9d915ca80')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nIf omitted, the gateway uses the default (oldest) active connection.\n\nAPI Reference\nContact Operations\nList Contacts\nGET /google-contacts/v1/people/me/connections?personFields=names,emailAddresses,phoneNumbers&pageSize=100\n\n\nQuery Parameters:\n\npersonFields (required): Comma-separated list of fields to return (see Person Fields section)\npageSize: Number of contacts to return (max 1000, default 100)\npageToken: Token for pagination\nsortOrder: LAST_MODIFIED_ASCENDING, LAST_MODIFIED_DESCENDING, FIRST_NAME_ASCENDING, or LAST_NAME_ASCENDING\n\nResponse:\n\n{\n  \"connections\": [\n    {\n      \"resourceName\": \"people/c1234567890\",\n      \"names\": [{\"displayName\": \"John Doe\", \"givenName\": \"John\", \"familyName\": \"Doe\"}],\n      \"emailAddresses\": [{\"value\": \"john@example.com\"}],\n      \"phoneNumbers\": [{\"value\": \"+1-555-0123\"}]\n    }\n  ],\n  \"totalPeople\": 1,\n  \"totalItems\": 1,\n  \"nextPageToken\": \"...\"\n}\n\nGet Contact\nGET /google-contacts/v1/people/{resourceName}?personFields=names,emailAddresses,phoneNumbers\n\n\nUse the resource name from list or create operations (e.g., people/c1234567890).\n\nCreate Contact\nPOST /google-contacts/v1/people:createContact\nContent-Type: application/json\n\n{\n  \"names\": [{\"givenName\": \"John\", \"familyName\": \"Doe\"}],\n  \"emailAddresses\": [{\"value\": \"john@example.com\"}],\n  \"phoneNumbers\": [{\"value\": \"+1-555-0123\"}],\n  \"organizations\": [{\"name\": \"Acme Corp\", \"title\": \"Engineer\"}]\n}\n\nUpdate Contact\nPATCH /google-contacts/v1/people/{resourceName}:updateContact?updatePersonFields=names,emailAddresses\nContent-Type: application/json\n\n{\n  \"etag\": \"%EgcBAgkLLjc9...\",\n  \"names\": [{\"givenName\": \"John\", \"familyName\": \"Smith\"}],\n  \"emailAddresses\": [{\"value\": \"john.smith@example.com\"}]\n}\n\n\nNote: Include the etag from the get/list response to ensure you're updating the latest version.\n\nDelete Contact\nDELETE /google-contacts/v1/people/{resourceName}:deleteContact\n\nBatch Get Contacts\nGET /google-contacts/v1/people:batchGet?resourceNames=people/c123&resourceNames=people/c456&personFields=names,emailAddresses\n\nBatch Create Contacts\nPOST /google-contacts/v1/people:batchCreateContacts\nContent-Type: application/json\n\n{\n  \"contacts\": [\n    {\n      \"contactPerson\": {\n        \"names\": [{\"givenName\": \"Alice\", \"familyName\": \"Smith\"}],\n        \"emailAddresses\": [{\"value\": \"alice@example.com\"}]\n      }\n    },\n    {\n      \"contactPerson\": {\n        \"names\": [{\"givenName\": \"Bob\", \"familyName\": \"Jones\"}],\n        \"emailAddresses\": [{\"value\": \"bob@example.com\"}]\n      }\n    }\n  ],\n  \"readMask\": \"names,emailAddresses\"\n}\n\nBatch Delete Contacts\nPOST /google-contacts/v1/people:batchDeleteContacts\nContent-Type: application/json\n\n{\n  \"resourceNames\": [\"people/c123\", \"people/c456\"]\n}\n\nSearch Contacts\nGET /google-contacts/v1/people:searchContacts?query=John&readMask=names,emailAddresses\n\n\nNote: Search results may have a slight delay for newly created contacts due to indexing.\n\nContact Group Operations\nList Contact Groups\nGET /google-contacts/v1/contactGroups?pageSize=100\n\n\nResponse:\n\n{\n  \"contactGroups\": [\n    {\n      \"resourceName\": \"contactGroups/starred\",\n      \"groupType\": \"SYSTEM_CONTACT_GROUP\",\n      \"name\": \"starred\",\n      \"formattedName\": \"Starred\"\n    },\n    {\n      \"resourceName\": \"contactGroups/abc123\",\n      \"groupType\": \"USER_CONTACT_GROUP\",\n      \"name\": \"Work\",\n      \"formattedName\": \"Work\",\n      \"memberCount\": 5\n    }\n  ],\n  \"totalItems\": 2\n}\n\nGet Contact Group\nGET /google-contacts/v1/contactGroups/{resourceName}?maxMembers=100\n\n\nUse contactGroups/starred, contactGroups/family, etc. for system groups, or the resource name for user groups.\n\nCreate Contact Group\nPOST /google-contacts/v1/contactGroups\nContent-Type: application/json\n\n{\n  \"contactGroup\": {\n    \"name\": \"Work Contacts\"\n  }\n}\n\nDelete Contact Group\nDELETE /google-contacts/v1/contactGroups/{resourceName}?deleteContacts=false\n\n\nSet deleteContacts=true to also delete the contacts in the group.\n\nBatch Get Contact Groups\nGET /google-contacts/v1/contactGroups:batchGet?resourceNames=contactGroups/starred&resourceNames=contactGroups/family\n\nModify Group Members\n\nAdd or remove contacts from a group:\n\nPOST /google-contacts/v1/contactGroups/{resourceName}/members:modify\nContent-Type: application/json\n\n{\n  \"resourceNamesToAdd\": [\"people/c123\", \"people/c456\"],\n  \"resourceNamesToRemove\": [\"people/c789\"]\n}\n\nOther Contacts\n\nOther contacts are people you've interacted with (e.g., via email) but haven't explicitly added to your contacts.\n\nList Other Contacts\nGET /google-contacts/v1/otherContacts?readMask=names,emailAddresses&pageSize=100\n\nCopy Other Contact to My Contacts\nPOST /google-contacts/v1/{resourceName}:copyOtherContactToMyContactsGroup\nContent-Type: application/json\n\n{\n  \"copyMask\": \"names,emailAddresses,phoneNumbers\"\n}\n\nPerson Fields\n\nUse these fields with personFields or readMask parameters:\n\nField\tDescription\nnames\tDisplay name, given name, family name\nemailAddresses\tEmail addresses with type\nphoneNumbers\tPhone numbers with type\naddresses\tPostal addresses\norganizations\tCompany, title, department\nbiographies\tBio/notes about the person\nbirthdays\tBirthday information\nurls\tWebsite URLs\nphotos\tProfile photos\nmemberships\tContact group memberships\nmetadata\tSource and update information\n\nMultiple fields: personFields=names,emailAddresses,phoneNumbers,organizations\n\nPagination\n\nUse pageSize and pageToken for pagination:\n\nGET /google-contacts/v1/people/me/connections?personFields=names&pageSize=100&pageToken=NEXT_PAGE_TOKEN\n\n\nResponse includes pagination info:\n\n{\n  \"connections\": [...],\n  \"totalPeople\": 500,\n  \"nextPageToken\": \"...\",\n  \"nextSyncToken\": \"...\"\n}\n\n\nContinue fetching with pageToken until nextPageToken is not returned.\n\nCode Examples\nJavaScript\nconst response = await fetch(\n  'https://gateway.maton.ai/google-contacts/v1/people/me/connections?personFields=names,emailAddresses&pageSize=50',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();\n\nPython\nimport os\nimport requests\n\nresponse = requests.get(\n    'https://gateway.maton.ai/google-contacts/v1/people/me/connections',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'},\n    params={\n        'personFields': 'names,emailAddresses,phoneNumbers',\n        'pageSize': 50\n    }\n)\ndata = response.json()\n\nNotes\nResource names for contacts follow the pattern people/c{id} (e.g., people/c1234567890)\nResource names for contact groups follow the pattern contactGroups/{id} (e.g., contactGroups/abc123)\nSystem contact groups include: starred, friends, family, coworkers, myContacts, all, blocked\nThe personFields parameter is required for most read operations\nWhen updating contacts, include the etag to prevent overwriting concurrent changes\nMutate requests for the same user should be sent sequentially to avoid increased latency and failures\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets to disable glob parsing\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments\nError Handling\nStatus\tMeaning\n400\tMissing Google Contacts connection or invalid request\n401\tInvalid or missing Maton API key\n403\tPermission denied (check OAuth scopes)\n404\tContact or group not found\n429\tRate limited\n4xx/5xx\tPassthrough error from Google People API\nTroubleshooting: API Key Issues\nCheck that the MATON_API_KEY environment variable is set:\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nTroubleshooting: Invalid App Name\nEnsure your URL path starts with google-contacts. For example:\nCorrect: https://gateway.maton.ai/google-contacts/v1/people/me/connections\nIncorrect: https://gateway.maton.ai/v1/people/me/connections\nResources\nGoogle People API Overview\nPeople Resource\nContact Groups Resource\nPerson Fields Reference\nMaton Community\nMaton Support"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/byungkyu/google-contacts",
    "publisherUrl": "https://clawhub.ai/byungkyu/google-contacts",
    "owner": "byungkyu",
    "version": "1.0.3",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/google-contacts",
    "downloadUrl": "https://openagent3.xyz/downloads/google-contacts",
    "agentUrl": "https://openagent3.xyz/skills/google-contacts/agent",
    "manifestUrl": "https://openagent3.xyz/skills/google-contacts/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/google-contacts/agent.md"
  }
}