[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77W65Y7EENR6GAC6Y38V86K":3,"skill-same:01M77W65Y7EENR6GAC6Y38V86K":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":40,"install":41,"resources":54},"01M77W65Y7EENR6GAC6Y38V86K","google-slides",null,"Google Slides API integration with managed OAuth. Create presentations, add slides, insert content, and manage slide formatting. Use this skill when users want to interact with Google Slides. For other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).","Jinhong270\u002FAI-Agent","Jinhong270","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F193703602?v=4","01M77SB4J7ATDYATSD7AW4B8XP","01M77SB4JWRQWNGTTR291BHMQP",3,"MIT","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fgoogle-slides\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fgoogle-slides\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: google-slides\ndescription: |\n  Google Slides API integration with managed OAuth. Create presentations, add slides, insert content, and manage slide formatting. Use this skill when users want to interact with Google Slides. For other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\ncompatibility: Requires network access and valid Maton API key\nmetadata:\n  author: maton\n  version: \"1.0\"\n  clawdbot:\n    emoji: 🧠\n    requires:\n      env:\n        - MATON_API_KEY\n---\n\n# Google Slides\n\nAccess the Google Slides API with managed OAuth authentication. Create and manage presentations, add slides, insert text and images, and control formatting.\n\n## Quick Start\n\n```bash\n# Create a new presentation\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'title': 'My Presentation'}).encode()\nreq = urllib.request.Request('https:\u002F\u002Fgateway.maton.ai\u002Fgoogle-slides\u002Fv1\u002Fpresentations', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application\u002Fjson')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n## Base URL\n\n```\nhttps:\u002F\u002Fgateway.maton.ai\u002Fgoogle-slides\u002F{native-api-path}\n```\n\nReplace `{native-api-path}` with the actual Google Slides API endpoint path. The gateway proxies requests to `slides.googleapis.com` and automatically injects your OAuth token.\n\n## Authentication\n\nAll requests require the Maton API key in the Authorization header:\n\n```\nAuthorization: Bearer $MATON_API_KEY\n```\n\n**Environment Variable:** Set your API key as `MATON_API_KEY`:\n\n```bash\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n```\n\n### Getting Your API Key\n\n1. Sign in or create an account at [maton.ai](https:\u002F\u002Fmaton.ai)\n2. Go to [maton.ai\u002Fsettings](https:\u002F\u002Fmaton.ai\u002Fsettings)\n3. Copy your API key\n\n## Connection Management\n\nManage your Google OAuth connections at `https:\u002F\u002Fctrl.maton.ai`.\n\n### List Connections\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections?app=google-slides&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```\n\n### Create Connection\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'google-slides'}).encode()\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application\u002Fjson')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Get Connection\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections\u002F{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\n**Response:**\n```json\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:\u002F\u002Fconnect.maton.ai\u002F?session_token=...\",\n    \"app\": \"google-slides\",\n    \"metadata\": {}\n  }\n}\n```\n\nOpen the returned `url` in a browser to complete OAuth authorization.\n\n### Delete Connection\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections\u002F{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```\n\n### Specifying Connection\n\nIf you have multiple Google Slides connections, specify which one to use with the `Maton-Connection` header:\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'title': 'My Presentation'}).encode()\nreq = urllib.request.Request('https:\u002F\u002Fgateway.maton.ai\u002Fgoogle-slides\u002Fv1\u002Fpresentations', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application\u002Fjson')\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\n## API Reference\n\n### Presentations\n\n#### Create Presentation\n\n```bash\nPOST \u002Fgoogle-slides\u002Fv1\u002Fpresentations\nContent-Type: application\u002Fjson\n\n{\n  \"title\": \"My Presentation\"\n}\n```\n\n#### Get Presentation\n\n```bash\nGET \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}\n```\n\n### Pages (Slides)\n\n#### Get Page\n\n```bash\nGET \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}\u002Fpages\u002F{pageId}\n```\n\n#### Get Page Thumbnail\n\n```bash\nGET \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}\u002Fpages\u002F{pageId}\u002Fthumbnail\n```\n\nWith custom size:\n\n```bash\nGET \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}\u002Fpages\u002F{pageId}\u002Fthumbnail?thumbnailProperties.mimeType=PNG&thumbnailProperties.thumbnailSize=LARGE\n```\n\n### Batch Update\n\nThe batchUpdate endpoint is used for most modifications. It accepts an array of requests that are applied atomically.\n\n```bash\nPOST \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}:batchUpdate\nContent-Type: application\u002Fjson\n\n{\n  \"requests\": [...]\n}\n```\n\n#### Create Slide\n\n```bash\nPOST \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}:batchUpdate\nContent-Type: application\u002Fjson\n\n{\n  \"requests\": [\n    {\n      \"createSlide\": {\n        \"objectId\": \"slide_001\",\n        \"slideLayoutReference\": {\n          \"predefinedLayout\": \"TITLE_AND_BODY\"\n        }\n      }\n    }\n  ]\n}\n```\n\nAvailable predefined layouts:\n- `BLANK`\n- `TITLE`\n- `TITLE_AND_BODY`\n- `TITLE_AND_TWO_COLUMNS`\n- `TITLE_ONLY`\n- `SECTION_HEADER`\n- `ONE_COLUMN_TEXT`\n- `MAIN_POINT`\n- `BIG_NUMBER`\n\n#### Insert Text\n\n```bash\nPOST \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}:batchUpdate\nContent-Type: application\u002Fjson\n\n{\n  \"requests\": [\n    {\n      \"insertText\": {\n        \"objectId\": \"{shapeId}\",\n        \"text\": \"Hello, World!\",\n        \"insertionIndex\": 0\n      }\n    }\n  ]\n}\n```\n\n#### Delete Text\n\n```bash\nPOST \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}:batchUpdate\nContent-Type: application\u002Fjson\n\n{\n  \"requests\": [\n    {\n      \"deleteText\": {\n        \"objectId\": \"{shapeId}\",\n        \"textRange\": {\n          \"type\": \"ALL\"\n        }\n      }\n    }\n  ]\n}\n```\n\n#### Create Shape\n\n```bash\nPOST \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}:batchUpdate\nContent-Type: application\u002Fjson\n\n{\n  \"requests\": [\n    {\n      \"createShape\": {\n        \"objectId\": \"shape_001\",\n        \"shapeType\": \"TEXT_BOX\",\n        \"elementProperties\": {\n          \"pageObjectId\": \"{slideId}\",\n          \"size\": {\n            \"width\": {\"magnitude\": 300, \"unit\": \"PT\"},\n            \"height\": {\"magnitude\": 100, \"unit\": \"PT\"}\n          },\n          \"transform\": {\n            \"scaleX\": 1,\n            \"scaleY\": 1,\n            \"translateX\": 100,\n            \"translateY\": 100,\n            \"unit\": \"PT\"\n          }\n        }\n      }\n    }\n  ]\n}\n```\n\n#### Create Image\n\n```bash\nPOST \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}:batchUpdate\nContent-Type: application\u002Fjson\n\n{\n  \"requests\": [\n    {\n      \"createImage\": {\n        \"objectId\": \"image_001\",\n        \"url\": \"https:\u002F\u002Fexample.com\u002Fimage.png\",\n        \"elementProperties\": {\n          \"pageObjectId\": \"{slideId}\",\n          \"size\": {\n            \"width\": {\"magnitude\": 200, \"unit\": \"PT\"},\n            \"height\": {\"magnitude\": 200, \"unit\": \"PT\"}\n          },\n          \"transform\": {\n            \"scaleX\": 1,\n            \"scaleY\": 1,\n            \"translateX\": 200,\n            \"translateY\": 200,\n            \"unit\": \"PT\"\n          }\n        }\n      }\n    }\n  ]\n}\n```\n\n#### Delete Object\n\n```bash\nPOST \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}:batchUpdate\nContent-Type: application\u002Fjson\n\n{\n  \"requests\": [\n    {\n      \"deleteObject\": {\n        \"objectId\": \"{objectId}\"\n      }\n    }\n  ]\n}\n```\n\n#### Update Text Style\n\n```bash\nPOST \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}:batchUpdate\nContent-Type: application\u002Fjson\n\n{\n  \"requests\": [\n    {\n      \"updateTextStyle\": {\n        \"objectId\": \"{shapeId}\",\n        \"textRange\": {\n          \"type\": \"ALL\"\n        },\n        \"style\": {\n          \"bold\": true,\n          \"fontSize\": {\"magnitude\": 24, \"unit\": \"PT\"},\n          \"foregroundColor\": {\n            \"opaqueColor\": {\n              \"rgbColor\": {\"red\": 0.2, \"green\": 0.4, \"blue\": 0.8}\n            }\n          }\n        },\n        \"fields\": \"bold,fontSize,foregroundColor\"\n      }\n    }\n  ]\n}\n```\n\n#### Replace All Text\n\n```bash\nPOST \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}:batchUpdate\nContent-Type: application\u002Fjson\n\n{\n  \"requests\": [\n    {\n      \"replaceAllText\": {\n        \"containsText\": {\n          \"text\": \"{{placeholder}}\",\n          \"matchCase\": true\n        },\n        \"replaceText\": \"Actual Value\"\n      }\n    }\n  ]\n}\n```\n\n## Code Examples\n\n### JavaScript\n\n```javascript\n\u002F\u002F Create a presentation\nconst response = await fetch(\n  'https:\u002F\u002Fgateway.maton.ai\u002Fgoogle-slides\u002Fv1\u002Fpresentations',\n  {\n    method: 'POST',\n    headers: {\n      'Content-Type': 'application\u002Fjson',\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    },\n    body: JSON.stringify({ title: 'My Presentation' })\n  }\n);\n\nconst presentation = await response.json();\nconst presentationId = presentation.presentationId;\n\n\u002F\u002F Add a slide\nawait fetch(\n  `https:\u002F\u002Fgateway.maton.ai\u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F${presentationId}:batchUpdate`,\n  {\n    method: 'POST',\n    headers: {\n      'Content-Type': 'application\u002Fjson',\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    },\n    body: JSON.stringify({\n      requests: [\n        {\n          createSlide: {\n            slideLayoutReference: { predefinedLayout: 'TITLE_AND_BODY' }\n          }\n        }\n      ]\n    })\n  }\n);\n```\n\n### Python\n\n```python\nimport os\nimport requests\n\nheaders = {\n    'Content-Type': 'application\u002Fjson',\n    'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'\n}\n\n# Create a presentation\nresponse = requests.post(\n    'https:\u002F\u002Fgateway.maton.ai\u002Fgoogle-slides\u002Fv1\u002Fpresentations',\n    headers=headers,\n    json={'title': 'My Presentation'}\n)\npresentation = response.json()\npresentation_id = presentation['presentationId']\n\n# Add a slide\nrequests.post(\n    f'https:\u002F\u002Fgateway.maton.ai\u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentation_id}:batchUpdate',\n    headers=headers,\n    json={\n        'requests': [\n            {\n                'createSlide': {\n                    'slideLayoutReference': {'predefinedLayout': 'TITLE_AND_BODY'}\n                }\n            }\n        ]\n    }\n)\n```\n\n## Notes\n\n- Object IDs must be unique within a presentation\n- Use batchUpdate for all modifications (adding slides, text, shapes, etc.)\n- Multiple requests in a batchUpdate are applied atomically\n- Sizes and positions use PT (points) as the unit (72 points = 1 inch)\n- Use `replaceAllText` for template-based presentation generation\n- IMPORTANT: When using curl commands, use `curl -g` when URLs contain brackets to disable glob parsing\n- IMPORTANT: When piping curl output to `jq` or other commands, environment variables like `$MATON_API_KEY` may not expand correctly in some shell environments. You may get \"Invalid API key\" errors when piping.\n\n## Error Handling\n\n| Status | Meaning |\n|--------|---------|\n| 400 | Missing Google Slides connection |\n| 401 | Invalid or missing Maton API key |\n| 404 | Presentation not found |\n| 429 | Rate limited (10 req\u002Fsec per account) |\n| 4xx\u002F5xx | Passthrough error from Google Slides API |\n\n### Troubleshooting: API Key Issues\n\n1. Check that the `MATON_API_KEY` environment variable is set:\n\n```bash\necho $MATON_API_KEY\n```\n\n2. Verify the API key is valid by listing connections:\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections')\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\n### Troubleshooting: Invalid App Name\n\n1. Ensure your URL path starts with `google-slides`. For example:\n\n- Correct: `https:\u002F\u002Fgateway.maton.ai\u002Fgoogle-slides\u002Fv1\u002Fpresentations`\n- Incorrect: `https:\u002F\u002Fgateway.maton.ai\u002Fslides\u002Fv1\u002Fpresentations`\n\n## Resources\n\n- [Slides API Overview](https:\u002F\u002Fdevelopers.google.com\u002Fslides\u002Fapi\u002Freference\u002Frest)\n- [Presentations](https:\u002F\u002Fdevelopers.google.com\u002Fslides\u002Fapi\u002Freference\u002Frest\u002Fv1\u002Fpresentations)\n- [Pages](https:\u002F\u002Fdevelopers.google.com\u002Fslides\u002Fapi\u002Freference\u002Frest\u002Fv1\u002Fpresentations.pages)\n- [BatchUpdate Requests](https:\u002F\u002Fdevelopers.google.com\u002Fslides\u002Fapi\u002Freference\u002Frest\u002Fv1\u002Fpresentations\u002FbatchUpdate)\n- [Page Layouts](https:\u002F\u002Fdevelopers.google.com\u002Fslides\u002Fapi\u002Freference\u002Frest\u002Fv1\u002Fpresentations\u002Fcreate#predefinedlayout)\n- [Maton Community](https:\u002F\u002Fdiscord.com\u002Finvite\u002FdBfFAcefs2)\n- [Maton Support](mailto:support@maton.ai)\n","# Google Slides\n\nAccess the Google Slides API with managed OAuth authentication. Create and manage presentations, add slides, insert text and images, and control formatting.\n\n## Quick Start\n\n```bash\n# Create a new presentation\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'title': 'My Presentation'}).encode()\nreq = urllib.request.Request('https:\u002F\u002Fgateway.maton.ai\u002Fgoogle-slides\u002Fv1\u002Fpresentations', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application\u002Fjson')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n## Base URL\n\n```\nhttps:\u002F\u002Fgateway.maton.ai\u002Fgoogle-slides\u002F{native-api-path}\n```\n\nReplace `{native-api-path}` with the actual Google Slides API endpoint path. The gateway proxies requests to `slides.googleapis.com` and automatically injects your OAuth token.\n\n## Authentication\n\nAll requests require the Maton API key in the Authorization header:\n\n```\nAuthorization: Bearer $MATON_API_KEY\n```\n\n**Environment Variable:** Set your API key as `MATON_API_KEY`:\n\n```bash\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n```\n\n### Getting Your API Key\n\n1. Sign in or create an account at [maton.ai](https:\u002F\u002Fmaton.ai)\n2. Go to [maton.ai\u002Fsettings](https:\u002F\u002Fmaton.ai\u002Fsettings)\n3. Copy your API key\n\n## Connection Management\n\nManage your Google OAuth connections at `https:\u002F\u002Fctrl.maton.ai`.\n\n### List Connections\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections?app=google-slides&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```\n\n### Create Connection\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'google-slides'}).encode()\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application\u002Fjson')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Get Connection\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections\u002F{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\n**Response:**\n```json\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:\u002F\u002Fconnect.maton.ai\u002F?session_token=...\",\n    \"app\": \"google-slides\",\n    \"metadata\": {}\n  }\n}\n```\n\nOpen the returned `url` in a browser to complete OAuth authorization.\n\n### Delete Connection\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections\u002F{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```\n\n### Specifying Connection\n\nIf you have multiple Google Slides connections, specify which one to use with the `Maton-Connection` header:\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'title': 'My Presentation'}).encode()\nreq = urllib.request.Request('https:\u002F\u002Fgateway.maton.ai\u002Fgoogle-slides\u002Fv1\u002Fpresentations', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application\u002Fjson')\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\n## API Reference\n\n### Presentations\n\n#### Create Presentation\n\n```bash\nPOST \u002Fgoogle-slides\u002Fv1\u002Fpresentations\nContent-Type: application\u002Fjson\n\n{\n  \"title\": \"My Presentation\"\n}\n```\n\n#### Get Presentation\n\n```bash\nGET \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}\n```\n\n### Pages (Slides)\n\n#### Get Page\n\n```bash\nGET \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}\u002Fpages\u002F{pageId}\n```\n\n#### Get Page Thumbnail\n\n```bash\nGET \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}\u002Fpages\u002F{pageId}\u002Fthumbnail\n```\n\nWith custom size:\n\n```bash\nGET \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}\u002Fpages\u002F{pageId}\u002Fthumbnail?thumbnailProperties.mimeType=PNG&thumbnailProperties.thumbnailSize=LARGE\n```\n\n### Batch Update\n\nThe batchUpdate endpoint is used for most modifications. It accepts an array of requests that are applied atomically.\n\n```bash\nPOST \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}:batchUpdate\nContent-Type: application\u002Fjson\n\n{\n  \"requests\": [...]\n}\n```\n\n#### Create Slide\n\n```bash\nPOST \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}:batchUpdate\nContent-Type: application\u002Fjson\n\n{\n  \"requests\": [\n    {\n      \"createSlide\": {\n        \"objectId\": \"slide_001\",\n        \"slideLayoutReference\": {\n          \"predefinedLayout\": \"TITLE_AND_BODY\"\n        }\n      }\n    }\n  ]\n}\n```\n\nAvailable predefined layouts:\n- `BLANK`\n- `TITLE`\n- `TITLE_AND_BODY`\n- `TITLE_AND_TWO_COLUMNS`\n- `TITLE_ONLY`\n- `SECTION_HEADER`\n- `ONE_COLUMN_TEXT`\n- `MAIN_POINT`\n- `BIG_NUMBER`\n\n#### Insert Text\n\n```bash\nPOST \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}:batchUpdate\nContent-Type: application\u002Fjson\n\n{\n  \"requests\": [\n    {\n      \"insertText\": {\n        \"objectId\": \"{shapeId}\",\n        \"text\": \"Hello, World!\",\n        \"insertionIndex\": 0\n      }\n    }\n  ]\n}\n```\n\n#### Delete Text\n\n```bash\nPOST \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}:batchUpdate\nContent-Type: application\u002Fjson\n\n{\n  \"requests\": [\n    {\n      \"deleteText\": {\n        \"objectId\": \"{shapeId}\",\n        \"textRange\": {\n          \"type\": \"ALL\"\n        }\n      }\n    }\n  ]\n}\n```\n\n#### Create Shape\n\n```bash\nPOST \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}:batchUpdate\nContent-Type: application\u002Fjson\n\n{\n  \"requests\": [\n    {\n      \"createShape\": {\n        \"objectId\": \"shape_001\",\n        \"shapeType\": \"TEXT_BOX\",\n        \"elementProperties\": {\n          \"pageObjectId\": \"{slideId}\",\n          \"size\": {\n            \"width\": {\"magnitude\": 300, \"unit\": \"PT\"},\n            \"height\": {\"magnitude\": 100, \"unit\": \"PT\"}\n          },\n          \"transform\": {\n            \"scaleX\": 1,\n            \"scaleY\": 1,\n            \"translateX\": 100,\n            \"translateY\": 100,\n            \"unit\": \"PT\"\n          }\n        }\n      }\n    }\n  ]\n}\n```\n\n#### Create Image\n\n```bash\nPOST \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}:batchUpdate\nContent-Type: application\u002Fjson\n\n{\n  \"requests\": [\n    {\n      \"createImage\": {\n        \"objectId\": \"image_001\",\n        \"url\": \"https:\u002F\u002Fexample.com\u002Fimage.png\",\n        \"elementProperties\": {\n          \"pageObjectId\": \"{slideId}\",\n          \"size\": {\n            \"width\": {\"magnitude\": 200, \"unit\": \"PT\"},\n            \"height\": {\"magnitude\": 200, \"unit\": \"PT\"}\n          },\n          \"transform\": {\n            \"scaleX\": 1,\n            \"scaleY\": 1,\n            \"translateX\": 200,\n            \"translateY\": 200,\n            \"unit\": \"PT\"\n          }\n        }\n      }\n    }\n  ]\n}\n```\n\n#### Delete Object\n\n```bash\nPOST \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}:batchUpdate\nContent-Type: application\u002Fjson\n\n{\n  \"requests\": [\n    {\n      \"deleteObject\": {\n        \"objectId\": \"{objectId}\"\n      }\n    }\n  ]\n}\n```\n\n#### Update Text Style\n\n```bash\nPOST \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}:batchUpdate\nContent-Type: application\u002Fjson\n\n{\n  \"requests\": [\n    {\n      \"updateTextStyle\": {\n        \"objectId\": \"{shapeId}\",\n        \"textRange\": {\n          \"type\": \"ALL\"\n        },\n        \"style\": {\n          \"bold\": true,\n          \"fontSize\": {\"magnitude\": 24, \"unit\": \"PT\"},\n          \"foregroundColor\": {\n            \"opaqueColor\": {\n              \"rgbColor\": {\"red\": 0.2, \"green\": 0.4, \"blue\": 0.8}\n            }\n          }\n        },\n        \"fields\": \"bold,fontSize,foregroundColor\"\n      }\n    }\n  ]\n}\n```\n\n#### Replace All Text\n\n```bash\nPOST \u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentationId}:batchUpdate\nContent-Type: application\u002Fjson\n\n{\n  \"requests\": [\n    {\n      \"replaceAllText\": {\n        \"containsText\": {\n          \"text\": \"{{placeholder}}\",\n          \"matchCase\": true\n        },\n        \"replaceText\": \"Actual Value\"\n      }\n    }\n  ]\n}\n```\n\n## Code Examples\n\n### JavaScript\n\n```javascript\n\u002F\u002F Create a presentation\nconst response = await fetch(\n  'https:\u002F\u002Fgateway.maton.ai\u002Fgoogle-slides\u002Fv1\u002Fpresentations',\n  {\n    method: 'POST',\n    headers: {\n      'Content-Type': 'application\u002Fjson',\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    },\n    body: JSON.stringify({ title: 'My Presentation' })\n  }\n);\n\nconst presentation = await response.json();\nconst presentationId = presentation.presentationId;\n\n\u002F\u002F Add a slide\nawait fetch(\n  `https:\u002F\u002Fgateway.maton.ai\u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F${presentationId}:batchUpdate`,\n  {\n    method: 'POST',\n    headers: {\n      'Content-Type': 'application\u002Fjson',\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    },\n    body: JSON.stringify({\n      requests: [\n        {\n          createSlide: {\n            slideLayoutReference: { predefinedLayout: 'TITLE_AND_BODY' }\n          }\n        }\n      ]\n    })\n  }\n);\n```\n\n### Python\n\n```python\nimport os\nimport requests\n\nheaders = {\n    'Content-Type': 'application\u002Fjson',\n    'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'\n}\n\n# Create a presentation\nresponse = requests.post(\n    'https:\u002F\u002Fgateway.maton.ai\u002Fgoogle-slides\u002Fv1\u002Fpresentations',\n    headers=headers,\n    json={'title': 'My Presentation'}\n)\npresentation = response.json()\npresentation_id = presentation['presentationId']\n\n# Add a slide\nrequests.post(\n    f'https:\u002F\u002Fgateway.maton.ai\u002Fgoogle-slides\u002Fv1\u002Fpresentations\u002F{presentation_id}:batchUpdate',\n    headers=headers,\n    json={\n        'requests': [\n            {\n                'createSlide': {\n                    'slideLayoutReference': {'predefinedLayout': 'TITLE_AND_BODY'}\n                }\n            }\n        ]\n    }\n)\n```\n\n## Notes\n\n- Object IDs must be unique within a presentation\n- Use batchUpdate for all modifications (adding slides, text, shapes, etc.)\n- Multiple requests in a batchUpdate are applied atomically\n- Sizes and positions use PT (points) as the unit (72 points = 1 inch)\n- Use `replaceAllText` for template-based presentation generation\n- IMPORTANT: When using curl commands, use `curl -g` when URLs contain brackets to disable glob parsing\n- IMPORTANT: When piping curl output to `jq` or other commands, environment variables like `$MATON_API_KEY` may not expand correctly in some shell environments. You may get \"Invalid API key\" errors when piping.\n\n## Error Handling\n\n| Status | Meaning |\n|--------|---------|\n| 400 | Missing Google Slides connection |\n| 401 | Invalid or missing Maton API key |\n| 404 | Presentation not found |\n| 429 | Rate limited (10 req\u002Fsec per account) |\n| 4xx\u002F5xx | Passthrough error from Google Slides API |\n\n### Troubleshooting: API Key Issues\n\n1. Check that the `MATON_API_KEY` environment variable is set:\n\n```bash\necho $MATON_API_KEY\n```\n\n2. Verify the API key is valid by listing connections:\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections')\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\n### Troubleshooting: Invalid App Name\n\n1. Ensure your URL path starts with `google-slides`. For example:\n\n- Correct: `https:\u002F\u002Fgateway.maton.ai\u002Fgoogle-slides\u002Fv1\u002Fpresentations`\n- Incorrect: `https:\u002F\u002Fgateway.maton.ai\u002Fslides\u002Fv1\u002Fpresentations`\n\n## Resources\n\n- [Slides API Overview](https:\u002F\u002Fdevelopers.google.com\u002Fslides\u002Fapi\u002Freference\u002Frest)\n- [Presentations](https:\u002F\u002Fdevelopers.google.com\u002Fslides\u002Fapi\u002Freference\u002Frest\u002Fv1\u002Fpresentations)\n- [Pages](https:\u002F\u002Fdevelopers.google.com\u002Fslides\u002Fapi\u002Freference\u002Frest\u002Fv1\u002Fpresentations.pages)\n- [BatchUpdate Requests](https:\u002F\u002Fdevelopers.google.com\u002Fslides\u002Fapi\u002Freference\u002Frest\u002Fv1\u002Fpresentations\u002FbatchUpdate)\n- [Page Layouts](https:\u002F\u002Fdevelopers.google.com\u002Fslides\u002Fapi\u002Freference\u002Frest\u002Fv1\u002Fpresentations\u002Fcreate#predefinedlayout)\n- [Maton Community](https:\u002F\u002Fdiscord.com\u002Finvite\u002FdBfFAcefs2)\n- [Maton Support](mailto:support@maton.ai)\n",{"name":5,"metadata":24,"description":32,"compatibility":33},{"author":25,"version":26,"clawdbot":27},"maton","1.0",{"emoji":28,"requires":29},"🧠",{"env":30},[31],"MATON_API_KEY","Google Slides API integration with managed OAuth. Create presentations, add slides, insert content, and manage slide formatting. Use this skill when users want to interact with Google Slides. For other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\n","Requires network access and valid Maton API key","main","cb3f39689b7b3a95edb2753c8f3e97a313b885fc","Xiao-Q\u002Fskills\u002Fgoogle-slides",0,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent","https:\u002F\u002Fgithub.com\u002FJinhong270","2026-09-30 23:42:56",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add Jinhong270\u002FAI-Agent --skill google-slides",{"tool":47,"command":48},"bunx","bunx skills add Jinhong270\u002FAI-Agent --skill google-slides",{"tool":50,"command":51},"pnpm","pnpm dlx skills add Jinhong270\u002FAI-Agent --skill google-slides","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fgoogle-slides\u002FSKILL.md",true,[55,61],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"_meta.json","REFERENCE","参考文档",132,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fgoogle-slides\u002F_meta.json",{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":15},"LICENSE.txt","LICENSE","许可证",1072,[67,74,82,89,96,103],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M77Z0W1XHJVFS4M183VZTF3Z","xlsx","Open, create, read, analyze, edit, repair, or validate spreadsheet files (.xlsx, .xlsm, .xltx, .csv, .tsv) with zero format loss, with first-class support for Chinese \u002F CJK content. Use whenever the user asks to create, build, modify, fill, analyze, read, repair, validate, or format any spreadsheet, workbook, report, dashboard, budget, financial model, pivot table, or tabular data file. Handles Chinese text, encodings (UTF-8 \u002F GB18030 \u002F GBK), full-width characters, CJK fonts in rendering, and Chinese number\u002Fdate conventions (¥, 万\u002F亿, 年\u002F月\u002F日). Covers: creating new workbooks from scratch, reading and analyzing existing files, editing existing workbooks while preserving pivot tables \u002F VBA macros \u002F charts \u002F sparklines \u002F conditional formatting \u002F named ranges, formula recalculation and validation, visual review of results, and applying professional formatting. Triggers on 'spreadsheet', 'Excel', 'workbook', '表格', '工作簿', '.xlsx', '.xlsm', '.csv', 'pivot table', '透视表', 'macro', '宏', 'chart', '图表', 'financial model', '财务模型', 'formula', '公式', or any request to produce tabular data.","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":78,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M77Z0EVYYQEYGJME2K56STBZ","xlsx-formula-master","你描述需求(人话)，它给你 Excel \u002F WPS 公式 + 解释 + 不踩坑的边界条件。\n专攻 VLOOKUP \u002F XLOOKUP \u002F INDEX-MATCH \u002F SUMIFS \u002F 数组公式 \u002F 动态数组 \u002F Power Query 等高频但易错场景。\n自动适配你的 Excel 版本（2019 \u002F 365 \u002F WPS）——版本不同公式可能不能用。\n触发：用户说 \"Excel 公式\"、\"VLOOKUP\"、\"怎么算\"、\"WPS 公式\"、\"求和怎么写\"、\"匹配数据\"、\"数据透视\"。","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx-formula-master\u002FLICENSE.md","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx-formula-master\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M77Z05X53XF8VVQFFFZE2Z4Z","self-improving-agent","Self-improving agent system that analyzes conversation quality, identifies improvement opportunities, and continuously optimizes response strategies.","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxiucheng-self-improving-agent\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M77YZ7KXV2B7GDCBKE07QRWE","xiaohongshu-content-tools","小红书运营数据工具｜当提到小红书关键词搜索,小红书笔记详情及评论,小红书博主作品时使用，可实现爆款挖掘\u002F竞品分析\u002FKOL筛选\u002F趋势洞察，用数据驱动小红书流量增长，告别盲目创作","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxiaohongshu-content-tools\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M77YYQVPA4EWZPQ8J88BYVYA","xfg-ddd-skills","DDD 六边形架构设计与部署技能包。提供 Domain\u002FCase\u002FInfrastructure 层设计模式与代码模板，以及 Docker 环境部署脚本。当用户询问 DDD 架构、设计模式或需要部署项目时调用。","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxfg-ddd-skills\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":107,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M77YXP7QKKD0HX26W2V63Q9M","wordpress","WordPress.com API integration with managed OAuth. Manage posts, pages, sites, and content.\nUse this skill when users want to create, read, update, or delete WordPress.com posts, pages, or manage site content.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fwordpress-api\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fwordpress-api\u002FSKILL.md",[],[]]