[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75ESNAAK09G0CEF66ZX37H2":3,"skill-same:01M75ESNAAK09G0CEF66ZX37H2":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M75ESNAAK09G0CEF66ZX37H2","clawemail",null,"Google Workspace via ClawEmail.com service — 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.","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcto1\u002Fclawemail\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: clawemail\ndescription: \"Google Workspace via ClawEmail.com service — 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\u002Fclawemail\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\u002Fclawemail\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\u002Fclawemail\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\u002Fclawemail\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\u002Fclawemail\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\u002Fclawemail\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\u002Fclawemail\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\u002Fclawemail\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\u002Fclawemail\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\u002Fclawemail\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\u002Fclawemail\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\u002Fclawemail\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\u002Fclawemail\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\u002Fclawemail\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\u002Fclawemail\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\u002Fclawemail\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\u002Fclawemail\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\u002Fclawemail\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\u002Fclawemail\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\u002Fclawemail\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":24,"description":7},{"openclaw":25},{"emoji":26,"requires":27,"primaryEnv":29},"🦞",{"env":28},[29],"CLAWEMAIL_CREDENTIALS","main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fcto1\u002Fclawemail",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill clawemail",{"tool":45,"command":46},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill clawemail",{"tool":48,"command":49},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill clawemail","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcto1\u002Fclawemail\u002FSKILL.md",true,[],[54,62,69,76,83,90],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":61},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":61},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":61},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":61},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":61},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":61},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]