[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6Q1Y0TPQ96D2YRPDC0TKHBG":3,"skill-same:01M6Q1Y0TPQ96D2YRPDC0TKHBG":82},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":54,"updatedAt":55,"install":56,"resources":69},"01M6Q1Y0TPQ96D2YRPDC0TKHBG","claw",null,"Google Workspace via ClawEmail — Gmail, Drive, Docs, Sheets, Slides, Calendar, Forms. Use PROACTIVELY when the user asks to send email, create documents, manage files, schedule events, or work with any Google service.","Kernel8901\u002Fai-agent-skills-classification","Kernel8901","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F72647553?v=4","01M6KV388J2H5PNC8D8P940BJD","01M6KV38CS5B3AY63RKZB410YM",7,"MIT","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F爪机器人工具\u002Fclaw\u002FSKILL.md",[],[5,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"schedule","send","sheets","events","forms","manage","files","calendar","use","work","gmail","send email","slides","credentials","email","create","documents","google workspace","google","2026-11-10 10:12:30",false,"---\nname: claw\ndescription: \"Google Workspace via ClawEmail — Gmail, Drive, Docs, Sheets, Slides, Calendar, Forms. Use PROACTIVELY when the user asks to send email, create documents, manage files, schedule events, or work with any Google service.\"\nmetadata: {\"openclaw\":{\"emoji\":\"?\",\"requires\":{\"env\":[\"CLAWEMAIL_CREDENTIALS\"]},\"primaryEnv\":\"CLAWEMAIL_CREDENTIALS\"}}\n---\n\n# Claw — Google Workspace for AI Agents\n\nUse `claw` for Gmail, Drive, Docs, Sheets, Slides, Calendar, and Forms via your @clawemail.com account.\n\n## Setup\n\n1. Save your ClawEmail credentials JSON to `~\u002F.config\u002Fclawemail\u002Fcredentials.json`\n2. Set the environment variable: `export CLAWEMAIL_CREDENTIALS=~\u002F.config\u002Fclawemail\u002Fcredentials.json`\n\nGet credentials at https:\u002F\u002Fclawemail.com — sign up, then visit `\u002Fconnect\u002FYOUR_PREFIX` to authorize OAuth.\n\n## Getting an Access Token\n\nAll API calls need a Bearer token. Use the helper script to refresh and cache it:\n\n```bash\nTOKEN=$(~\u002F.openclaw\u002Fskills\u002Fclaw\u002Fscripts\u002Ftoken.sh)\n```\n\nThe script caches tokens for 50 minutes. Always assign to `TOKEN` before making API calls.\n\n---\n\n## Gmail\n\n### Search emails\n\n```bash\nTOKEN=$(~\u002F.openclaw\u002Fskills\u002Fclaw\u002Fscripts\u002Ftoken.sh)\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fgmail.googleapis.com\u002Fgmail\u002Fv1\u002Fusers\u002Fme\u002Fmessages?q=newer_than:7d&maxResults=10\" | python3 -m json.tool\n```\n\nCommon query operators: `from:`, `to:`, `subject:`, `newer_than:`, `older_than:`, `is:unread`, `has:attachment`, `label:`, `in:inbox`.\n\n### Read a message\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fgmail.googleapis.com\u002Fgmail\u002Fv1\u002Fusers\u002Fme\u002Fmessages\u002FMESSAGE_ID?format=full\" | python3 -m json.tool\n```\n\nFor plain text body only, use `format=minimal` and decode the payload. For readable output:\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fgmail.googleapis.com\u002Fgmail\u002Fv1\u002Fusers\u002Fme\u002Fmessages\u002FMESSAGE_ID?format=full\" \\\n  | python3 -c \"\nimport json,sys,base64\nm=json.load(sys.stdin)\nhdrs={h['name']:h['value'] for h in m['payload']['headers']}\nprint(f\\\"From: {hdrs.get('From','')}\\nTo: {hdrs.get('To','')}\\nSubject: {hdrs.get('Subject','')}\\nDate: {hdrs.get('Date','')}\\n\\\")\ndef get_body(part):\n    if part.get('body',{}).get('data'):\n        return base64.urlsafe_b64decode(part['body']['data']).decode('utf-8','replace')\n    for p in part.get('parts',[]):\n        if p['mimeType']=='text\u002Fplain': return get_body(p)\n    for p in part.get('parts',[]):\n        b=get_body(p)\n        if b: return b\n    return ''\nprint(get_body(m['payload']))\n\"\n```\n\n### Send an email\n\n```bash\nTOKEN=$(~\u002F.openclaw\u002Fskills\u002Fclaw\u002Fscripts\u002Ftoken.sh)\npython3 -c \"\nimport base64,json\nraw = base64.urlsafe_b64encode(\n    b'To: recipient@example.com\\r\\nSubject: Hello\\r\\nContent-Type: text\u002Fplain; charset=utf-8\\r\\n\\r\\nMessage body here'\n).decode()\nprint(json.dumps({'raw': raw}))\n\" | curl -s -X POST \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d @- \\\n  \"https:\u002F\u002Fgmail.googleapis.com\u002Fgmail\u002Fv1\u002Fusers\u002Fme\u002Fmessages\u002Fsend\"\n```\n\nFor HTML emails, replace `Content-Type: text\u002Fplain` with `Content-Type: text\u002Fhtml` and use HTML in the body.\n\n### Reply to a message\n\nSame as send, but add `In-Reply-To:` and `References:` headers from the original message, and include `threadId` in the JSON body:\n\n```bash\npython3 -c \"\nimport base64,json\nraw = base64.urlsafe_b64encode(\n    b'To: recipient@example.com\\r\\nSubject: Re: Original Subject\\r\\nIn-Reply-To: \u003Coriginal-message-id>\\r\\nReferences: \u003Coriginal-message-id>\\r\\nContent-Type: text\u002Fplain; charset=utf-8\\r\\n\\r\\nReply body'\n).decode()\nprint(json.dumps({'raw': raw, 'threadId': 'THREAD_ID'}))\n\" | curl -s -X POST \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d @- \\\n  \"https:\u002F\u002Fgmail.googleapis.com\u002Fgmail\u002Fv1\u002Fusers\u002Fme\u002Fmessages\u002Fsend\"\n```\n\n### List labels\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fgmail.googleapis.com\u002Fgmail\u002Fv1\u002Fusers\u002Fme\u002Flabels\" | python3 -m json.tool\n```\n\n### Add\u002Fremove labels\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"addLabelIds\":[\"LABEL_ID\"],\"removeLabelIds\":[\"INBOX\"]}' \\\n  \"https:\u002F\u002Fgmail.googleapis.com\u002Fgmail\u002Fv1\u002Fusers\u002Fme\u002Fmessages\u002FMESSAGE_ID\u002Fmodify\"\n```\n\n---\n\n## Google Drive\n\n### List files\n\n```bash\nTOKEN=$(~\u002F.openclaw\u002Fskills\u002Fclaw\u002Fscripts\u002Ftoken.sh)\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fdrive\u002Fv3\u002Ffiles?pageSize=20&fields=files(id,name,mimeType,modifiedTime,size)&orderBy=modifiedTime desc\" | python3 -m json.tool\n```\n\n### Search files\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fdrive\u002Fv3\u002Ffiles?q=name+contains+'report'&fields=files(id,name,mimeType,modifiedTime)\" | python3 -m json.tool\n```\n\nQuery operators: `name contains 'term'`, `mimeType='application\u002Fvnd.google-apps.document'`, `'FOLDER_ID' in parents`, `trashed=false`, `modifiedTime > '2025-01-01'`.\n\nCommon MIME types:\n- Document: `application\u002Fvnd.google-apps.document`\n- Spreadsheet: `application\u002Fvnd.google-apps.spreadsheet`\n- Presentation: `application\u002Fvnd.google-apps.presentation`\n- Folder: `application\u002Fvnd.google-apps.folder`\n- Form: `application\u002Fvnd.google-apps.form`\n\n### Create a folder\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"name\":\"My Folder\",\"mimeType\":\"application\u002Fvnd.google-apps.folder\"}' \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fdrive\u002Fv3\u002Ffiles?fields=id,name\" | python3 -m json.tool\n```\n\n### Upload a file\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -F \"metadata={\\\"name\\\":\\\"report.pdf\\\"};type=application\u002Fjson\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Freport.pdf;type=application\u002Fpdf\" \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fupload\u002Fdrive\u002Fv3\u002Ffiles?uploadType=multipart&fields=id,name\" | python3 -m json.tool\n```\n\n### Download a file\n\nFor Google Docs\u002FSheets\u002FSlides (export):\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fdrive\u002Fv3\u002Ffiles\u002FFILE_ID\u002Fexport?mimeType=application\u002Fpdf\" -o output.pdf\n```\n\nExport formats: `text\u002Fplain`, `text\u002Fhtml`, `application\u002Fpdf`, `application\u002Fvnd.openxmlformats-officedocument.wordprocessingml.document` (docx), `text\u002Fcsv` (sheets).\n\nFor binary files (download):\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fdrive\u002Fv3\u002Ffiles\u002FFILE_ID?alt=media\" -o output.file\n```\n\n### Share a file\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"role\":\"writer\",\"type\":\"user\",\"emailAddress\":\"user@example.com\"}' \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fdrive\u002Fv3\u002Ffiles\u002FFILE_ID\u002Fpermissions\"\n```\n\nRoles: `reader`, `commenter`, `writer`, `owner`. Types: `user`, `group`, `domain`, `anyone`.\n\n### Delete a file\n\n```bash\ncurl -s -X DELETE -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fdrive\u002Fv3\u002Ffiles\u002FFILE_ID\"\n```\n\n---\n\n## Google Docs\n\n### Create a document\n\n```bash\nTOKEN=$(~\u002F.openclaw\u002Fskills\u002Fclaw\u002Fscripts\u002Ftoken.sh)\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"title\":\"My Document\"}' \\\n  \"https:\u002F\u002Fdocs.googleapis.com\u002Fv1\u002Fdocuments\" | python3 -m json.tool\n```\n\n### Read a document\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fdocs.googleapis.com\u002Fv1\u002Fdocuments\u002FDOCUMENT_ID\" | python3 -m json.tool\n```\n\nFor plain text extraction:\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fdocs.googleapis.com\u002Fv1\u002Fdocuments\u002FDOCUMENT_ID\" \\\n  | python3 -c \"\nimport json,sys\ndoc=json.load(sys.stdin)\ntext=''\nfor el in doc.get('body',{}).get('content',[]):\n    for p in el.get('paragraph',{}).get('elements',[]):\n        text+=p.get('textRun',{}).get('content','')\nprint(text)\n\"\n```\n\n### Append text to a document\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"requests\":[{\"insertText\":{\"location\":{\"index\":1},\"text\":\"Hello, world!\\n\"}}]}' \\\n  \"https:\u002F\u002Fdocs.googleapis.com\u002Fv1\u002Fdocuments\u002FDOCUMENT_ID:batchUpdate\"\n```\n\n### Replace text in a document\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"requests\":[{\"replaceAllText\":{\"containsText\":{\"text\":\"OLD_TEXT\",\"matchCase\":true},\"replaceText\":\"NEW_TEXT\"}}]}' \\\n  \"https:\u002F\u002Fdocs.googleapis.com\u002Fv1\u002Fdocuments\u002FDOCUMENT_ID:batchUpdate\"\n```\n\n### Insert a heading\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"requests\":[{\"insertText\":{\"location\":{\"index\":1},\"text\":\"My Heading\\n\"}},{\"updateParagraphStyle\":{\"range\":{\"startIndex\":1,\"endIndex\":12},\"paragraphStyle\":{\"namedStyleType\":\"HEADING_1\"},\"fields\":\"namedStyleType\"}}]}' \\\n  \"https:\u002F\u002Fdocs.googleapis.com\u002Fv1\u002Fdocuments\u002FDOCUMENT_ID:batchUpdate\"\n```\n\nHeading styles: `HEADING_1` through `HEADING_6`, `TITLE`, `SUBTITLE`, `NORMAL_TEXT`.\n\n---\n\n## Google Sheets\n\n### Create a spreadsheet\n\n```bash\nTOKEN=$(~\u002F.openclaw\u002Fskills\u002Fclaw\u002Fscripts\u002Ftoken.sh)\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"properties\":{\"title\":\"My Spreadsheet\"}}' \\\n  \"https:\u002F\u002Fsheets.googleapis.com\u002Fv4\u002Fspreadsheets\" | python3 -m json.tool\n```\n\n### Read cells\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fsheets.googleapis.com\u002Fv4\u002Fspreadsheets\u002FSPREADSHEET_ID\u002Fvalues\u002FSheet1!A1:D10\" | python3 -m json.tool\n```\n\n### Write cells\n\n```bash\ncurl -s -X PUT -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"values\":[[\"Name\",\"Age\",\"City\"],[\"Alice\",\"30\",\"NYC\"],[\"Bob\",\"25\",\"LA\"]]}' \\\n  \"https:\u002F\u002Fsheets.googleapis.com\u002Fv4\u002Fspreadsheets\u002FSPREADSHEET_ID\u002Fvalues\u002FSheet1!A1:C3?valueInputOption=USER_ENTERED\" | python3 -m json.tool\n```\n\n### Append rows\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"values\":[[\"Charlie\",\"35\",\"Chicago\"]]}' \\\n  \"https:\u002F\u002Fsheets.googleapis.com\u002Fv4\u002Fspreadsheets\u002FSPREADSHEET_ID\u002Fvalues\u002FSheet1!A:C:append?valueInputOption=USER_ENTERED&insertDataOption=INSERT_ROWS\" | python3 -m json.tool\n```\n\n### Clear a range\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fsheets.googleapis.com\u002Fv4\u002Fspreadsheets\u002FSPREADSHEET_ID\u002Fvalues\u002FSheet1!A1:D10:clear\"\n```\n\n### Get spreadsheet metadata\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fsheets.googleapis.com\u002Fv4\u002Fspreadsheets\u002FSPREADSHEET_ID?fields=properties.title,sheets.properties\" | python3 -m json.tool\n```\n\n---\n\n## Google Slides\n\n### Create a presentation\n\n```bash\nTOKEN=$(~\u002F.openclaw\u002Fskills\u002Fclaw\u002Fscripts\u002Ftoken.sh)\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"title\":\"My Presentation\"}' \\\n  \"https:\u002F\u002Fslides.googleapis.com\u002Fv1\u002Fpresentations\" | python3 -m json.tool\n```\n\n### Get presentation info\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fslides.googleapis.com\u002Fv1\u002Fpresentations\u002FPRESENTATION_ID\" | python3 -m json.tool\n```\n\n### Add a new slide\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"requests\":[{\"createSlide\":{\"slideLayoutReference\":{\"predefinedLayout\":\"TITLE_AND_BODY\"}}}]}' \\\n  \"https:\u002F\u002Fslides.googleapis.com\u002Fv1\u002Fpresentations\u002FPRESENTATION_ID:batchUpdate\" | python3 -m json.tool\n```\n\nLayouts: `BLANK`, `TITLE`, `TITLE_AND_BODY`, `TITLE_AND_TWO_COLUMNS`, `TITLE_ONLY`, `SECTION_HEADER`, `ONE_COLUMN_TEXT`, `MAIN_POINT`, `BIG_NUMBER`.\n\n### Add text to a slide\n\nFirst get the slide's page object IDs, then insert text into a placeholder:\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"requests\":[{\"insertText\":{\"objectId\":\"PLACEHOLDER_OBJECT_ID\",\"text\":\"Hello from ClawEmail!\",\"insertionIndex\":0}}]}' \\\n  \"https:\u002F\u002Fslides.googleapis.com\u002Fv1\u002Fpresentations\u002FPRESENTATION_ID:batchUpdate\"\n```\n\n### Add an image to a slide\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"requests\":[{\"createImage\":{\"url\":\"https:\u002F\u002Fexample.com\u002Fimage.png\",\"elementProperties\":{\"pageObjectId\":\"SLIDE_ID\",\"size\":{\"width\":{\"magnitude\":3000000,\"unit\":\"EMU\"},\"height\":{\"magnitude\":2000000,\"unit\":\"EMU\"}},\"transform\":{\"scaleX\":1,\"scaleY\":1,\"translateX\":1000000,\"translateY\":1500000,\"unit\":\"EMU\"}}}}]}' \\\n  \"https:\u002F\u002Fslides.googleapis.com\u002Fv1\u002Fpresentations\u002FPRESENTATION_ID:batchUpdate\"\n```\n\n---\n\n## Google Calendar\n\n### List upcoming events\n\n```bash\nTOKEN=$(~\u002F.openclaw\u002Fskills\u002Fclaw\u002Fscripts\u002Ftoken.sh)\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fcalendar\u002Fv3\u002Fcalendars\u002Fprimary\u002Fevents?timeMin=$(date -u +%Y-%m-%dT%H:%M:%SZ)&maxResults=10&singleEvents=true&orderBy=startTime\" | python3 -m json.tool\n```\n\n### Get events in a date range\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fcalendar\u002Fv3\u002Fcalendars\u002Fprimary\u002Fevents?timeMin=2025-03-01T00:00:00Z&timeMax=2025-03-31T23:59:59Z&singleEvents=true&orderBy=startTime\" | python3 -m json.tool\n```\n\n### Create an event\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"summary\": \"Team Meeting\",\n    \"description\": \"Weekly standup\",\n    \"start\": {\"dateTime\": \"2025-03-15T10:00:00-05:00\", \"timeZone\": \"America\u002FNew_York\"},\n    \"end\": {\"dateTime\": \"2025-03-15T11:00:00-05:00\", \"timeZone\": \"America\u002FNew_York\"},\n    \"attendees\": [{\"email\": \"colleague@example.com\"}]\n  }' \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fcalendar\u002Fv3\u002Fcalendars\u002Fprimary\u002Fevents\" | python3 -m json.tool\n```\n\n### Update an event\n\n```bash\ncurl -s -X PATCH -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"summary\":\"Updated Meeting Title\",\"location\":\"Conference Room A\"}' \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fcalendar\u002Fv3\u002Fcalendars\u002Fprimary\u002Fevents\u002FEVENT_ID\" | python3 -m json.tool\n```\n\n### Delete an event\n\n```bash\ncurl -s -X DELETE -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fcalendar\u002Fv3\u002Fcalendars\u002Fprimary\u002Fevents\u002FEVENT_ID\"\n```\n\n### List calendars\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fcalendar\u002Fv3\u002Fusers\u002Fme\u002FcalendarList\" | python3 -m json.tool\n```\n\n---\n\n## Google Forms\n\n### Create a form\n\n```bash\nTOKEN=$(~\u002F.openclaw\u002Fskills\u002Fclaw\u002Fscripts\u002Ftoken.sh)\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"info\":{\"title\":\"Feedback Form\"}}' \\\n  \"https:\u002F\u002Fforms.googleapis.com\u002Fv1\u002Fforms\" | python3 -m json.tool\n```\n\n### Add questions\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"requests\":[{\"createItem\":{\"item\":{\"title\":\"How would you rate this?\",\"questionItem\":{\"question\":{\"required\":true,\"scaleQuestion\":{\"low\":1,\"high\":5,\"lowLabel\":\"Poor\",\"highLabel\":\"Excellent\"}}}},\"location\":{\"index\":0}}}]}' \\\n  \"https:\u002F\u002Fforms.googleapis.com\u002Fv1\u002Fforms\u002FFORM_ID:batchUpdate\"\n```\n\n### Get form responses\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fforms.googleapis.com\u002Fv1\u002Fforms\u002FFORM_ID\u002Fresponses\" | python3 -m json.tool\n```\n\n---\n\n## Tips\n\n- **Always refresh token first:** Start every sequence with `TOKEN=$(~\u002F.openclaw\u002Fskills\u002Fclaw\u002Fscripts\u002Ftoken.sh)`\n- **JSON output:** Pipe through `python3 -m json.tool` for readable output, or `| python3 -c \"import json,sys;...\"` for extraction\n- **Pagination:** Most list endpoints return `nextPageToken`. Pass it as `?pageToken=TOKEN` for the next page\n- **Batch operations:** Docs, Sheets, and Slides support `batchUpdate` — send multiple operations in one request\n- **Error 401:** Token expired. Re-run `token.sh` to refresh\n- **Error 403:** Scope not authorized. The ClawEmail OAuth includes Gmail, Drive, Docs, Sheets, Slides, Calendar, and Forms scopes\n- **Rate limits:** Google APIs have per-user rate limits. Add brief delays between rapid successive calls\n- **File IDs:** Google Docs\u002FSheets\u002FSlides URLs contain the file ID: `https:\u002F\u002Fdocs.google.com\u002Fdocument\u002Fd\u002FFILE_ID\u002Fedit`\n\n## When to Use\n\n- User asks to send, read, or search email\n- User wants to create or edit documents, spreadsheets, or presentations\n- User needs to manage files in Google Drive\n- User wants to schedule or check calendar events\n- User asks to create forms or review form responses\n- Any task involving Google Workspace services\n","# Claw — Google Workspace for AI Agents\n\nUse `claw` for Gmail, Drive, Docs, Sheets, Slides, Calendar, and Forms via your @clawemail.com account.\n\n## Setup\n\n1. Save your ClawEmail credentials JSON to `~\u002F.config\u002Fclawemail\u002Fcredentials.json`\n2. Set the environment variable: `export CLAWEMAIL_CREDENTIALS=~\u002F.config\u002Fclawemail\u002Fcredentials.json`\n\nGet credentials at https:\u002F\u002Fclawemail.com — sign up, then visit `\u002Fconnect\u002FYOUR_PREFIX` to authorize OAuth.\n\n## Getting an Access Token\n\nAll API calls need a Bearer token. Use the helper script to refresh and cache it:\n\n```bash\nTOKEN=$(~\u002F.openclaw\u002Fskills\u002Fclaw\u002Fscripts\u002Ftoken.sh)\n```\n\nThe script caches tokens for 50 minutes. Always assign to `TOKEN` before making API calls.\n\n---\n\n## Gmail\n\n### Search emails\n\n```bash\nTOKEN=$(~\u002F.openclaw\u002Fskills\u002Fclaw\u002Fscripts\u002Ftoken.sh)\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fgmail.googleapis.com\u002Fgmail\u002Fv1\u002Fusers\u002Fme\u002Fmessages?q=newer_than:7d&maxResults=10\" | python3 -m json.tool\n```\n\nCommon query operators: `from:`, `to:`, `subject:`, `newer_than:`, `older_than:`, `is:unread`, `has:attachment`, `label:`, `in:inbox`.\n\n### Read a message\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fgmail.googleapis.com\u002Fgmail\u002Fv1\u002Fusers\u002Fme\u002Fmessages\u002FMESSAGE_ID?format=full\" | python3 -m json.tool\n```\n\nFor plain text body only, use `format=minimal` and decode the payload. For readable output:\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fgmail.googleapis.com\u002Fgmail\u002Fv1\u002Fusers\u002Fme\u002Fmessages\u002FMESSAGE_ID?format=full\" \\\n  | python3 -c \"\nimport json,sys,base64\nm=json.load(sys.stdin)\nhdrs={h['name']:h['value'] for h in m['payload']['headers']}\nprint(f\\\"From: {hdrs.get('From','')}\\nTo: {hdrs.get('To','')}\\nSubject: {hdrs.get('Subject','')}\\nDate: {hdrs.get('Date','')}\\n\\\")\ndef get_body(part):\n    if part.get('body',{}).get('data'):\n        return base64.urlsafe_b64decode(part['body']['data']).decode('utf-8','replace')\n    for p in part.get('parts',[]):\n        if p['mimeType']=='text\u002Fplain': return get_body(p)\n    for p in part.get('parts',[]):\n        b=get_body(p)\n        if b: return b\n    return ''\nprint(get_body(m['payload']))\n\"\n```\n\n### Send an email\n\n```bash\nTOKEN=$(~\u002F.openclaw\u002Fskills\u002Fclaw\u002Fscripts\u002Ftoken.sh)\npython3 -c \"\nimport base64,json\nraw = base64.urlsafe_b64encode(\n    b'To: recipient@example.com\\r\\nSubject: Hello\\r\\nContent-Type: text\u002Fplain; charset=utf-8\\r\\n\\r\\nMessage body here'\n).decode()\nprint(json.dumps({'raw': raw}))\n\" | curl -s -X POST \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d @- \\\n  \"https:\u002F\u002Fgmail.googleapis.com\u002Fgmail\u002Fv1\u002Fusers\u002Fme\u002Fmessages\u002Fsend\"\n```\n\nFor HTML emails, replace `Content-Type: text\u002Fplain` with `Content-Type: text\u002Fhtml` and use HTML in the body.\n\n### Reply to a message\n\nSame as send, but add `In-Reply-To:` and `References:` headers from the original message, and include `threadId` in the JSON body:\n\n```bash\npython3 -c \"\nimport base64,json\nraw = base64.urlsafe_b64encode(\n    b'To: recipient@example.com\\r\\nSubject: Re: Original Subject\\r\\nIn-Reply-To: \u003Coriginal-message-id>\\r\\nReferences: \u003Coriginal-message-id>\\r\\nContent-Type: text\u002Fplain; charset=utf-8\\r\\n\\r\\nReply body'\n).decode()\nprint(json.dumps({'raw': raw, 'threadId': 'THREAD_ID'}))\n\" | curl -s -X POST \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d @- \\\n  \"https:\u002F\u002Fgmail.googleapis.com\u002Fgmail\u002Fv1\u002Fusers\u002Fme\u002Fmessages\u002Fsend\"\n```\n\n### List labels\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fgmail.googleapis.com\u002Fgmail\u002Fv1\u002Fusers\u002Fme\u002Flabels\" | python3 -m json.tool\n```\n\n### Add\u002Fremove labels\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"addLabelIds\":[\"LABEL_ID\"],\"removeLabelIds\":[\"INBOX\"]}' \\\n  \"https:\u002F\u002Fgmail.googleapis.com\u002Fgmail\u002Fv1\u002Fusers\u002Fme\u002Fmessages\u002FMESSAGE_ID\u002Fmodify\"\n```\n\n---\n\n## Google Drive\n\n### List files\n\n```bash\nTOKEN=$(~\u002F.openclaw\u002Fskills\u002Fclaw\u002Fscripts\u002Ftoken.sh)\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fdrive\u002Fv3\u002Ffiles?pageSize=20&fields=files(id,name,mimeType,modifiedTime,size)&orderBy=modifiedTime desc\" | python3 -m json.tool\n```\n\n### Search files\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fdrive\u002Fv3\u002Ffiles?q=name+contains+'report'&fields=files(id,name,mimeType,modifiedTime)\" | python3 -m json.tool\n```\n\nQuery operators: `name contains 'term'`, `mimeType='application\u002Fvnd.google-apps.document'`, `'FOLDER_ID' in parents`, `trashed=false`, `modifiedTime > '2025-01-01'`.\n\nCommon MIME types:\n- Document: `application\u002Fvnd.google-apps.document`\n- Spreadsheet: `application\u002Fvnd.google-apps.spreadsheet`\n- Presentation: `application\u002Fvnd.google-apps.presentation`\n- Folder: `application\u002Fvnd.google-apps.folder`\n- Form: `application\u002Fvnd.google-apps.form`\n\n### Create a folder\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"name\":\"My Folder\",\"mimeType\":\"application\u002Fvnd.google-apps.folder\"}' \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fdrive\u002Fv3\u002Ffiles?fields=id,name\" | python3 -m json.tool\n```\n\n### Upload a file\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -F \"metadata={\\\"name\\\":\\\"report.pdf\\\"};type=application\u002Fjson\" \\\n  -F \"file=@\u002Fpath\u002Fto\u002Freport.pdf;type=application\u002Fpdf\" \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fupload\u002Fdrive\u002Fv3\u002Ffiles?uploadType=multipart&fields=id,name\" | python3 -m json.tool\n```\n\n### Download a file\n\nFor Google Docs\u002FSheets\u002FSlides (export):\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fdrive\u002Fv3\u002Ffiles\u002FFILE_ID\u002Fexport?mimeType=application\u002Fpdf\" -o output.pdf\n```\n\nExport formats: `text\u002Fplain`, `text\u002Fhtml`, `application\u002Fpdf`, `application\u002Fvnd.openxmlformats-officedocument.wordprocessingml.document` (docx), `text\u002Fcsv` (sheets).\n\nFor binary files (download):\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fdrive\u002Fv3\u002Ffiles\u002FFILE_ID?alt=media\" -o output.file\n```\n\n### Share a file\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"role\":\"writer\",\"type\":\"user\",\"emailAddress\":\"user@example.com\"}' \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fdrive\u002Fv3\u002Ffiles\u002FFILE_ID\u002Fpermissions\"\n```\n\nRoles: `reader`, `commenter`, `writer`, `owner`. Types: `user`, `group`, `domain`, `anyone`.\n\n### Delete a file\n\n```bash\ncurl -s -X DELETE -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fdrive\u002Fv3\u002Ffiles\u002FFILE_ID\"\n```\n\n---\n\n## Google Docs\n\n### Create a document\n\n```bash\nTOKEN=$(~\u002F.openclaw\u002Fskills\u002Fclaw\u002Fscripts\u002Ftoken.sh)\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"title\":\"My Document\"}' \\\n  \"https:\u002F\u002Fdocs.googleapis.com\u002Fv1\u002Fdocuments\" | python3 -m json.tool\n```\n\n### Read a document\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fdocs.googleapis.com\u002Fv1\u002Fdocuments\u002FDOCUMENT_ID\" | python3 -m json.tool\n```\n\nFor plain text extraction:\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fdocs.googleapis.com\u002Fv1\u002Fdocuments\u002FDOCUMENT_ID\" \\\n  | python3 -c \"\nimport json,sys\ndoc=json.load(sys.stdin)\ntext=''\nfor el in doc.get('body',{}).get('content',[]):\n    for p in el.get('paragraph',{}).get('elements',[]):\n        text+=p.get('textRun',{}).get('content','')\nprint(text)\n\"\n```\n\n### Append text to a document\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"requests\":[{\"insertText\":{\"location\":{\"index\":1},\"text\":\"Hello, world!\\n\"}}]}' \\\n  \"https:\u002F\u002Fdocs.googleapis.com\u002Fv1\u002Fdocuments\u002FDOCUMENT_ID:batchUpdate\"\n```\n\n### Replace text in a document\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"requests\":[{\"replaceAllText\":{\"containsText\":{\"text\":\"OLD_TEXT\",\"matchCase\":true},\"replaceText\":\"NEW_TEXT\"}}]}' \\\n  \"https:\u002F\u002Fdocs.googleapis.com\u002Fv1\u002Fdocuments\u002FDOCUMENT_ID:batchUpdate\"\n```\n\n### Insert a heading\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"requests\":[{\"insertText\":{\"location\":{\"index\":1},\"text\":\"My Heading\\n\"}},{\"updateParagraphStyle\":{\"range\":{\"startIndex\":1,\"endIndex\":12},\"paragraphStyle\":{\"namedStyleType\":\"HEADING_1\"},\"fields\":\"namedStyleType\"}}]}' \\\n  \"https:\u002F\u002Fdocs.googleapis.com\u002Fv1\u002Fdocuments\u002FDOCUMENT_ID:batchUpdate\"\n```\n\nHeading styles: `HEADING_1` through `HEADING_6`, `TITLE`, `SUBTITLE`, `NORMAL_TEXT`.\n\n---\n\n## Google Sheets\n\n### Create a spreadsheet\n\n```bash\nTOKEN=$(~\u002F.openclaw\u002Fskills\u002Fclaw\u002Fscripts\u002Ftoken.sh)\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"properties\":{\"title\":\"My Spreadsheet\"}}' \\\n  \"https:\u002F\u002Fsheets.googleapis.com\u002Fv4\u002Fspreadsheets\" | python3 -m json.tool\n```\n\n### Read cells\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fsheets.googleapis.com\u002Fv4\u002Fspreadsheets\u002FSPREADSHEET_ID\u002Fvalues\u002FSheet1!A1:D10\" | python3 -m json.tool\n```\n\n### Write cells\n\n```bash\ncurl -s -X PUT -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"values\":[[\"Name\",\"Age\",\"City\"],[\"Alice\",\"30\",\"NYC\"],[\"Bob\",\"25\",\"LA\"]]}' \\\n  \"https:\u002F\u002Fsheets.googleapis.com\u002Fv4\u002Fspreadsheets\u002FSPREADSHEET_ID\u002Fvalues\u002FSheet1!A1:C3?valueInputOption=USER_ENTERED\" | python3 -m json.tool\n```\n\n### Append rows\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"values\":[[\"Charlie\",\"35\",\"Chicago\"]]}' \\\n  \"https:\u002F\u002Fsheets.googleapis.com\u002Fv4\u002Fspreadsheets\u002FSPREADSHEET_ID\u002Fvalues\u002FSheet1!A:C:append?valueInputOption=USER_ENTERED&insertDataOption=INSERT_ROWS\" | python3 -m json.tool\n```\n\n### Clear a range\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fsheets.googleapis.com\u002Fv4\u002Fspreadsheets\u002FSPREADSHEET_ID\u002Fvalues\u002FSheet1!A1:D10:clear\"\n```\n\n### Get spreadsheet metadata\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fsheets.googleapis.com\u002Fv4\u002Fspreadsheets\u002FSPREADSHEET_ID?fields=properties.title,sheets.properties\" | python3 -m json.tool\n```\n\n---\n\n## Google Slides\n\n### Create a presentation\n\n```bash\nTOKEN=$(~\u002F.openclaw\u002Fskills\u002Fclaw\u002Fscripts\u002Ftoken.sh)\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"title\":\"My Presentation\"}' \\\n  \"https:\u002F\u002Fslides.googleapis.com\u002Fv1\u002Fpresentations\" | python3 -m json.tool\n```\n\n### Get presentation info\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fslides.googleapis.com\u002Fv1\u002Fpresentations\u002FPRESENTATION_ID\" | python3 -m json.tool\n```\n\n### Add a new slide\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"requests\":[{\"createSlide\":{\"slideLayoutReference\":{\"predefinedLayout\":\"TITLE_AND_BODY\"}}}]}' \\\n  \"https:\u002F\u002Fslides.googleapis.com\u002Fv1\u002Fpresentations\u002FPRESENTATION_ID:batchUpdate\" | python3 -m json.tool\n```\n\nLayouts: `BLANK`, `TITLE`, `TITLE_AND_BODY`, `TITLE_AND_TWO_COLUMNS`, `TITLE_ONLY`, `SECTION_HEADER`, `ONE_COLUMN_TEXT`, `MAIN_POINT`, `BIG_NUMBER`.\n\n### Add text to a slide\n\nFirst get the slide's page object IDs, then insert text into a placeholder:\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"requests\":[{\"insertText\":{\"objectId\":\"PLACEHOLDER_OBJECT_ID\",\"text\":\"Hello from ClawEmail!\",\"insertionIndex\":0}}]}' \\\n  \"https:\u002F\u002Fslides.googleapis.com\u002Fv1\u002Fpresentations\u002FPRESENTATION_ID:batchUpdate\"\n```\n\n### Add an image to a slide\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"requests\":[{\"createImage\":{\"url\":\"https:\u002F\u002Fexample.com\u002Fimage.png\",\"elementProperties\":{\"pageObjectId\":\"SLIDE_ID\",\"size\":{\"width\":{\"magnitude\":3000000,\"unit\":\"EMU\"},\"height\":{\"magnitude\":2000000,\"unit\":\"EMU\"}},\"transform\":{\"scaleX\":1,\"scaleY\":1,\"translateX\":1000000,\"translateY\":1500000,\"unit\":\"EMU\"}}}}]}' \\\n  \"https:\u002F\u002Fslides.googleapis.com\u002Fv1\u002Fpresentations\u002FPRESENTATION_ID:batchUpdate\"\n```\n\n---\n\n## Google Calendar\n\n### List upcoming events\n\n```bash\nTOKEN=$(~\u002F.openclaw\u002Fskills\u002Fclaw\u002Fscripts\u002Ftoken.sh)\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fcalendar\u002Fv3\u002Fcalendars\u002Fprimary\u002Fevents?timeMin=$(date -u +%Y-%m-%dT%H:%M:%SZ)&maxResults=10&singleEvents=true&orderBy=startTime\" | python3 -m json.tool\n```\n\n### Get events in a date range\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fcalendar\u002Fv3\u002Fcalendars\u002Fprimary\u002Fevents?timeMin=2025-03-01T00:00:00Z&timeMax=2025-03-31T23:59:59Z&singleEvents=true&orderBy=startTime\" | python3 -m json.tool\n```\n\n### Create an event\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"summary\": \"Team Meeting\",\n    \"description\": \"Weekly standup\",\n    \"start\": {\"dateTime\": \"2025-03-15T10:00:00-05:00\", \"timeZone\": \"America\u002FNew_York\"},\n    \"end\": {\"dateTime\": \"2025-03-15T11:00:00-05:00\", \"timeZone\": \"America\u002FNew_York\"},\n    \"attendees\": [{\"email\": \"colleague@example.com\"}]\n  }' \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fcalendar\u002Fv3\u002Fcalendars\u002Fprimary\u002Fevents\" | python3 -m json.tool\n```\n\n### Update an event\n\n```bash\ncurl -s -X PATCH -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"summary\":\"Updated Meeting Title\",\"location\":\"Conference Room A\"}' \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fcalendar\u002Fv3\u002Fcalendars\u002Fprimary\u002Fevents\u002FEVENT_ID\" | python3 -m json.tool\n```\n\n### Delete an event\n\n```bash\ncurl -s -X DELETE -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fcalendar\u002Fv3\u002Fcalendars\u002Fprimary\u002Fevents\u002FEVENT_ID\"\n```\n\n### List calendars\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fwww.googleapis.com\u002Fcalendar\u002Fv3\u002Fusers\u002Fme\u002FcalendarList\" | python3 -m json.tool\n```\n\n---\n\n## Google Forms\n\n### Create a form\n\n```bash\nTOKEN=$(~\u002F.openclaw\u002Fskills\u002Fclaw\u002Fscripts\u002Ftoken.sh)\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"info\":{\"title\":\"Feedback Form\"}}' \\\n  \"https:\u002F\u002Fforms.googleapis.com\u002Fv1\u002Fforms\" | python3 -m json.tool\n```\n\n### Add questions\n\n```bash\ncurl -s -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"requests\":[{\"createItem\":{\"item\":{\"title\":\"How would you rate this?\",\"questionItem\":{\"question\":{\"required\":true,\"scaleQuestion\":{\"low\":1,\"high\":5,\"lowLabel\":\"Poor\",\"highLabel\":\"Excellent\"}}}},\"location\":{\"index\":0}}}]}' \\\n  \"https:\u002F\u002Fforms.googleapis.com\u002Fv1\u002Fforms\u002FFORM_ID:batchUpdate\"\n```\n\n### Get form responses\n\n```bash\ncurl -s -H \"Authorization: Bearer $TOKEN\" \\\n  \"https:\u002F\u002Fforms.googleapis.com\u002Fv1\u002Fforms\u002FFORM_ID\u002Fresponses\" | python3 -m json.tool\n```\n\n---\n\n## Tips\n\n- **Always refresh token first:** Start every sequence with `TOKEN=$(~\u002F.openclaw\u002Fskills\u002Fclaw\u002Fscripts\u002Ftoken.sh)`\n- **JSON output:** Pipe through `python3 -m json.tool` for readable output, or `| python3 -c \"import json,sys;...\"` for extraction\n- **Pagination:** Most list endpoints return `nextPageToken`. Pass it as `?pageToken=TOKEN` for the next page\n- **Batch operations:** Docs, Sheets, and Slides support `batchUpdate` — send multiple operations in one request\n- **Error 401:** Token expired. Re-run `token.sh` to refresh\n- **Error 403:** Scope not authorized. The ClawEmail OAuth includes Gmail, Drive, Docs, Sheets, Slides, Calendar, and Forms scopes\n- **Rate limits:** Google APIs have per-user rate limits. Add brief delays between rapid successive calls\n- **File IDs:** Google Docs\u002FSheets\u002FSlides URLs contain the file ID: `https:\u002F\u002Fdocs.google.com\u002Fdocument\u002Fd\u002FFILE_ID\u002Fedit`\n\n## When to Use\n\n- User asks to send, read, or search email\n- User wants to create or edit documents, spreadsheets, or presentations\n- User needs to manage files in Google Drive\n- User wants to schedule or check calendar events\n- User asks to create forms or review form responses\n- Any task involving Google Workspace services\n",{"name":5,"metadata":42,"description":7},{"openclaw":43},{"emoji":44,"requires":45,"primaryEnv":47},"?",{"env":46},[47],"CLAWEMAIL_CREDENTIALS","main","f4cb2d49f7667e79ef7804f50396d5aaffdf1f56","爪机器人工具\u002Fclaw",1,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification","https:\u002F\u002Fgithub.com\u002FKernel8901","a little little little dobe in life but science geek","2026-04-05 16:43:56",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add Kernel8901\u002Fai-agent-skills-classification --skill claw",{"tool":62,"command":63},"bunx","bunx skills add Kernel8901\u002Fai-agent-skills-classification --skill claw",{"tool":65,"command":66},"pnpm","pnpm dlx skills add Kernel8901\u002Fai-agent-skills-classification --skill claw","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F爪机器人工具\u002Fclaw\u002FSKILL.md",true,[70,76],{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"_meta.json","REFERENCE","参考文档",263,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F爪机器人工具\u002Fclaw\u002F_meta.json",{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"scripts\u002Ftoken.sh","SCRIPT","脚本",1914,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F爪机器人工具\u002Fclaw\u002Fscripts\u002Ftoken.sh",[83,106,129,137,144,171],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":37},"01M6Q5R6WZ06RRB9RQTW54B34B","zyfai","Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit\u002Fwithdraw anytime.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzyfai-sdk\u002FSKILL.md",[],[85,90,91,92,93,94,26,95,96,97,98,99,100,101,102,103,104,105],"safe","ethereum","defi","Optimization","user","Wallet","base","deposit","withdraw","yield","arbitrum","non-custodial","passive","defi yield","earn","yield optimization",{"skillNo":107,"name":108,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":37},"01M6Q5R337B5JSNER4P4YS03TN","zerion-api","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api\u002FSKILL.md",[],[112,113,114,115,116,117,118,92,119,95,120,121,122,123,124,125,126,127,128],"api","zerion api","zerion","MCP","mcp server","server","blockchain","transactions","crypto wallet","crypto","evm","solana","query","across","positions","token","prices",{"skillNo":130,"name":131,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":37},"01M6Q5QZFYTDAZMZ27BN5VZXAR","zerion-api-skill","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-skill\u002FSKILL.md",[],[112,135,136,113,114,115,116,117,118,92,119,95,121,122,123,124,125,126,127,128],"api skill","zerion api skill",{"skillNo":138,"name":139,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":37},"01M6Q5QW17QW98RA3FE45E4RD8","zerion-api-mcp","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-mcp\u002FSKILL.md",[],[115,112,143,113,114,116,117,92,119,95,120,121,122,123,124,125,126,127,128],"zerion api mcp",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":37},"01M6Q5QQYZB7A501BDEQWKGSJT","yahoo-finance-forex","Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR\u002FUSD, GBP\u002FUSD, USD\u002FJPY, etc.). Analyzes sentiment and provides trading context.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-forex\u002FSKILL.md",[],[151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170],"finance","yahoo finance","forex","yahoo","yahoo finance forex","github","https","sentiment","real-time","python3","install","Market","usd","news","time","currency","gbp","pip","market data","for",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":37},"01M6Q5QM6VS84WZVM7BKXXPF32","yahoo-finance","This skill should be used when the user asks to \"get stock prices\", \"check stock quotes\", \"look up earnings\", \"get financial data\", \"find trending stocks\", or needs stock market data from Yahoo Finance.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-cli\u002FSKILL.md",[],[151,152,154,178,179,180,181,182,183,162,184,185,186,187,188,189,190,191,128,169],"cli","homebrew","find","check","brew","up","local","get","stock","link","trending","sf","quotes","ln"]