Community编程与开发github.com

Google Slides 自动化

通过 Rube MCP (Composio) 自动化 Google Slides 任务:创建演示文稿、从 Markdown 添加幻灯片、批量更新、从模板复制、获取缩略图。始终先搜索工具以获取当前架构。

Google Slides 自动化 是什么?

该技能通过 Rube MCP (Composio) 工具包,为 AI 代理提供了以编程方式全面自动化 Google Slides 的能力。它支持创建空白演示文稿、从 Markdown 文本自动生成幻灯片、批量更新现有演示内容、从模板复制生成新文件,以及获取幻灯片缩略图等核心操作。用户无需手动编写 Google Slides API 请求,只需通过简单的工具调用即可完成复杂的演示文稿管理工作。该技能适用于需要高效批量生成或修改演示文稿的场景,例如自动化报告生成、模板化内容填充等。使用时需确保 Rube MCP 已连接,并先调用 `RUBE_SEARCH_TOOLS` 获取最新工具架构,然后通过 `RUBE_MANAGE_CONNECTIONS` 完成 Google Slides 账户授权。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComposioHQ/awesome-claude-skills/tree/master/composio-skills/googleslides-automation

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

通过 Rube MCP 实现 Google Slides 自动化

使用 Rube MCP (Composio) 以编程方式创建、编辑和管理 Google Slides 演示文稿。

工具包文档:composio.dev/toolkits/googleslides

先决条件

  • 必须已连接 Rube MCP(RUBE_SEARCH_TOOLS 可用)
  • 通过 RUBE_MANAGE_CONNECTIONS 建立与 googleslides 工具包的活跃连接
  • 始终先调用 RUBE_SEARCH_TOOLS 获取当前工具架构

设置

获取 Rube MCP:在客户端配置中将 https://rube.app/mcp 添加为 MCP 服务器。无需 API 密钥——只需添加端点即可使用。

  1. 确认 RUBE_SEARCH_TOOLS 有响应,以验证 Rube MCP 可用
  2. 使用 googleslides 工具包调用 RUBE_MANAGE_CONNECTIONS
  3. 如果连接状态不是 ACTIVE,按照返回的授权链接完成设置
  4. 在运行任何工作流之前,确认连接状态显示为 ACTIVE

核心工作流

1. 创建空白演示文稿

使用 GOOGLESLIDES_PRESENTATIONS_CREATE 初始化一个新的空白演示文稿。

工具:GOOGLESLIDES_PRESENTATIONS_CREATE
参数:
  - title(必填):新演示文稿的标题
  - presentationId(可选):要分配的特定 ID(通常自动生成)

2. 从 Markdown 创建幻灯片

使用 GOOGLESLIDES_CREATE_SLIDES_MARKDOWN 从 Markdown 文本生成完整的演示文稿。内容会自动分割到各张幻灯片中。

工具:GOOGLESLIDES_CREATE_SLIDES_MARKDOWN
参数:
  - title(必填):演示文稿标题
  - markdown_text(必填):Markdown 内容(自动分割到幻灯片)

3. 批量更新演示文稿

使用 GOOGLESLIDES_PRESENTATIONS_BATCH_UPDATE 通过 Markdown 或原始 API 请求对现有演示文稿进行更新。

工具:GOOGLESLIDES_PRESENTATIONS_BATCH_UPDATE
参数:
  - presentationId(必填):目标演示文稿 ID
  - markdown_text:用于更新幻灯片的 Markdown 内容
  - requests:原始 Google Slides API 批量更新请求
  - writeControl:写入控制设置

4. 从模板复制

使用 GOOGLESLIDES_PRESENTATIONS_COPY_FROM_TEMPLATE 复制现有演示文稿作为模板。

工具:GOOGLESLIDES_PRESENTATIONS_COPY_FROM_TEMPLATE
参数:
  - template_presentation_id(必填):源模板演示文稿 ID
  - new_title(必填):新副本的标题
  - parent_folder_id(可选):Google Drive 中存放副本的文件夹

5. 获取演示文稿详情

使用 GOOGLESLIDES_PRESENTATIONS_GET 获取演示文稿的当前状态,包括所有幻灯片和元素。

工具:GOOGLESLIDES_PRESENTATIONS_GET
参数:
  - presentationId(必填):要获取的演示文稿 ID
  - fields(可选):要返回的特定字段

6. 生成幻灯片缩略图

使用 GOOGLESLIDES_PRESENTATIONS_PAGES_GET_THUMBNAIL 为特定幻灯片生成缩略图图片 URL。

工具:GOOGLESLIDES_PRESENTATIONS_PAGES_GET_THUMBNAIL
参数:
  - presentationId(必填):演示文稿 ID
  - pageObjectId(必填):页面/幻灯片对象 ID
  - thumbnailProperties.mimeType:图片格式(例如 PNG)
  - thumbnailProperties.thumbnailSize:缩略图尺寸

常见模式

  • Markdown 优先工作流:使用 GOOGLESLIDES_CREATE_SLIDES_MARKDOWN 从结构化文本快速生成演示文稿。该工具会自动将内容分割到各张幻灯片中。
  • 基于模板的生成:使用 GOOGLESLIDES_PRESENTATIONS_COPY_FROM_TEMPLATE 复制一个样式化模板,然后使用 GOOGLESLIDES_PRESENTATIONS_BATCH_UPDATE 填充内容。
  • 检索后修改:使用 GOOGLESLIDES_PRESENTATIONS_GET 检查幻灯片结构和对象 ID,然后使用 GOOGLESLIDES_PRESENTATIONS_BATCH_UPDATE 进行精确修改。
  • 导出缩略图:使用 GOOGLESLIDES_PRESENTATIONS_PAGES_GET 列出页面对象 ID,然后使用 GOOGLESLIDES_PRESENTATIONS_PAGES_GET_THUMBNAIL 生成预览图片。
  • 分享演示文稿:创建后,结合 GOOGLEDRIVE_ADD_FILE_SHARING_PREFERENCE(googledrive 工具包)进行分享。

已知陷阱

  • GOOGLESLIDES_CREATE_SLIDES_MARKDOWN 每次都会创建一个全新的演示文稿——它无法追加到现有演示文稿中。
  • 使用原始 requests 参数的 GOOGLESLIDES_PRESENTATIONS_BATCH_UPDATE 需要了解 Google Slides API 请求格式。对于简单的更新,建议使用 markdown_text。
  • 在使用缩略图或页面获取工具之前,必须通过 GOOGLESLIDES_PRESENTATIONS_GET 获取页面对象 ID。
  • presentationId 是 Google Slides URL 中 /d/ 和 /edit 之间的长字母数字字符串。
  • 从模板复制需要已认证用户至少拥有对模板演示文稿的读取权限。

快速参考

操作工具关键参数
创建空白演示文稿GOOGLESLIDES_PRESENTATIONS_CREATEtitle
从 Markdown 创建GOOGLESLIDES_CREATE_SLIDES_MARKDOWNtitle, markdown_text
批量更新幻灯片GOOGLESLIDES_PRESENTATIONS_BATCH_UPDATEpresentationId, markdown_text 或 requests
从模板复制GOOGLESLIDES_PRESENTATIONS_COPY_FROM_TEMPLATEtemplate_presentation_id, new_title
获取演示文稿GOOGLESLIDES_PRESENTATIONS_GETpresentationId
获取页面详情GOOGLESLIDES_PRESENTATIONS_PAGES_GETpresentationId, pageObjectId
获取幻灯片缩略图GOOGLESLIDES_PRESENTATIONS_PAGES_GET_THUMBNAILpresentationId, pageObjectId

由 Composio 提供支持

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

abstract-automation

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

abuselpdb-automation

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

abyssale-automation

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

accelo-automation

Automate Accelo tasks via Rube MCP (Composio). Always search tools first for current schemas.

accredible-certificates-automation

Automate Accredible Certificates tasks via Rube MCP (Composio). Always search tools first for current schemas.

acculynx-automation

Automate Acculynx tasks via Rube MCP (Composio). Always search tools first for current schemas.

active-campaign-automation

Automate ActiveCampaign tasks via Rube MCP (Composio). Always search tools first for current schemas.

addresszen-automation

Automate Addresszen tasks via Rube MCP (Composio). Always search tools first for current schemas.

adobe-automation

Automate Adobe tasks via Rube MCP (Composio). Always search tools first for current schemas.

adrapid-automation

Automate Adrapid tasks via Rube MCP (Composio). Always search tools first for current schemas.

adyntel-automation

Automate Adyntel tasks via Rube MCP (Composio). Always search tools first for current schemas.

aeroleads-automation

Automate Aeroleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

aero-workflow-automation

Automate Aero Workflow tasks via Rube MCP (Composio). Always search tools first for current schemas.

affinda-automation

Automate Affinda tasks via Rube MCP (Composio). Always search tools first for current schemas.

affinity-automation

Automate Affinity tasks via Rube MCP (Composio). Always search tools first for current schemas.

agencyzoom-automation

Automate Agencyzoom tasks via Rube MCP (Composio). Always search tools first for current schemas.

agent-mail-automation

Automate Agent Mail tasks via Rube MCP (Composio). Always search tools first for current schemas.

agentql-automation

Automate Agentql tasks via Rube MCP (Composio). Always search tools first for current schemas.

agenty-automation

Automate Agenty tasks via Rube MCP (Composio). Always search tools first for current schemas.

相关技能