Google Slides MCP

io.github.A1-x-Tech由 GitHub 帳號 A1-x-Tech 發布v1.1.2更新於 Nov 7, 2026

MCP server for the Google Slides API: presentations, slides, text, shapes, images and tables.

已驗證STDIO僅桌面效率與工作流媒體與設計

概覽

AI 產生的概覽

在本機執行的 Google Slides API MCP 伺服器,讓助理在 Google 帳號中建立、編輯、檢視與匯出簡報。

可以做什麼
  • 檢視簡報:列出投影片與元素、讀取整頁內容、讀取備忘稿、列出版面配置、產生頁面縮圖。
  • 建立與調整投影片:建立新簡報,新增、複製、移動投影片,刪除投影片或元素。
  • 寫入與設定文字樣式:插入、取代或全文尋找取代文字,設定文字樣式,建立圖案、圖片與表格,調整表格結構與元素位置。
  • 備忘稿與留言:讀取與改寫備忘稿,列出、建立與解決該檔案的留言串。
  • 匯出與備援呼叫:匯出為 PDF、PPTX、ODP 或 TXT,送出原始 batchUpdate 請求或直接呼叫 API。
  • 連線與授權管理:安裝檢查清單、儲存 OAuth 用戶端、開始與完成登入、查看授權狀態、登出。
適用情境
適合想用自然語言讓助理起草或修改 Google 簡報時使用,例如建立投影片、填入預留位置、調整文字樣式、插入圖片與表格、維護備忘稿、處理留言,或把簡報匯出給沒有 Google 存取權的人。
執行需求
透過 npx 在本機執行,需要 Node.js 20+ 與 Google 帳號。必須使用 Google OAuth 2.0(API 金鑰不足):可在對話中連線並儲存 Desktop 應用程式 OAuth 用戶端 JSON,或設定 GOOGLE_SLIDES_CLIENT_ID、GOOGLE_SLIDES_CLIENT_SECRET 與 GOOGLE_SLIDES_REFRESH_TOKEN(也可用短期的 GOOGLE_SLIDES_ACCESS_TOKEN)。留言、匯出與本機圖片上傳需要 Drive 權限範圍;需能連線至 Google API。
安裝前請注意
用戶端密鑰與更新權杖等同密碼;伺服器會把權杖存成本機憑證檔,並要求以路徑而非聊天內容提供用戶端 JSON。寫入會改動真實簡報:尋找取代會改動所有符合項目,刪除操作無法透過 API 復原。原始 batchUpdate 與 raw_request 可能造成破壞。預設會傳送匿名遙測,可設定 ASKADS_TELEMETRY=0 關閉。測試模式的更新權杖可能七天後失效。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Google Slides MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[A1] Google Slides MCP

English | Русский

[npm] [Glama] [CI] [License: MIT]

A1 Google Slides MCP lets an AI app build and edit Google Slides presentations in plain language. Draft a deck, add and rearrange slides, write and style text, place shapes, images and tables, keep speaker notes, review comments and export the result as PDF or PPTX.

It uses the Google Slides API with your Google account. Everything inside a deck is addressed by explicit object ids, and it makes the limits of the Slides API explicit instead of implying that every presentation task is possible.

  • 32 tools. Inspect decks and pages, edit slides, text, shapes, images and tables, manage speaker notes and comments, render thumbnails and export files.
  • Connects from the conversation. Say "connect Google Slides": the server walks you through the OAuth client, catches Google's redirect on 127.0.0.1 with PKCE and keeps the tokens itself — no config files, no restart.
  • Edits are atomic. Changes ride the API's batchUpdate: one invalid request voids the whole batch, so a deck is never left half-edited.
  • Your Drive stays out of reach. Comments, export and local-image upload use the Drive API strictly for the one presentation file — there are no tools to list, share, rename or delete Drive files.
  • Minimal Google scopes. It needs presentations; Drive scopes are required only for local images, comments and export.

Start with a read-only question:

Show me the slides in the quarterly report deck and what's on each of them.

Connect the server · Explore use cases · Open technical documentation


See it work in a minute

You: List the slides of the Q3 review deck and what's on each one.

Assistant: Shows a compact inventory: every slide's position, layout and elements with their visible text. Nothing changes.

You: Prepare a new slide after the agenda titled “Roadmap”, with the key dates in the body.

Assistant: Shows the target deck, the layout and the proposed text, then asks for confirmation before adding it.

You: Confirm.

Assistant: Adds the slide and fills its placeholders. It does not touch the other slides.

Contents

Quick start

You need Node.js 20+ and a Google account. Credentials are not required at install time — the server connects from the conversation.

  1. Add the server to your AI app.
  2. Say "connect Google Slides": the assistant walks you through creating the OAuth client and approving access without editing config files.
  3. Ask the read-only question above.
Codex

In the app: open Settings → MCP servers, select Add server, choose STDIO, enter the command npx -y @a1-x-tech/mcp-google-slides@latest and environment variables GOOGLE_SLIDES_CLIENT_ID, GOOGLE_SLIDES_CLIENT_SECRET, GOOGLE_SLIDES_REFRESH_TOKEN, then select Save and Restart.

From the command line:

bash
codex mcp add google-slides \  -- npx -y @a1-x-tech/mcp-google-slides@latest
bash
codex mcp list

Codex MCP documentation

Claude Code
bash
claude mcp add \  --transport stdio --scope user google-slides \  -- npx -y @a1-x-tech/mcp-google-slides@latest
bash
claude mcp list

Claude Code MCP documentation

Claude Desktop

The current official path is Settings → Extensions. For a custom desktop extension, open Advanced settings → Extension Developer → Install Extension…, select a .mcpb file and follow the prompts.

This repository currently publishes an npm stdio package and does not contain a .mcpb bundle. For Claude Desktop builds that still support local configuration, use the following JSON stdio configuration as a fallback:

json
{  "mcpServers": {    "google-slides": {      "command": "npx",      "args": ["-y", "@a1-x-tech/mcp-google-slides@latest"]    }  }}

In those builds, save it to ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows.

Claude Desktop MCP documentation

Cursor

Add this to ~/.cursor/mcp.json on macOS/Linux or %USERPROFILE%\.cursor\mcp.json on Windows:

json
{  "mcpServers": {    "google-slides": {      "type": "stdio",      "command": "npx",      "args": ["-y", "@a1-x-tech/mcp-google-slides@latest"]    }  }}

Cursor MCP documentation

VS Code

Run MCP: Open User Configuration and add:

json
{  "servers": {    "google-slides": {      "type": "stdio",      "command": "npx",      "args": ["-y", "@a1-x-tech/mcp-google-slides@latest"]    }  }}

Check it with MCP: List Servers.

VS Code MCP documentation

What you can ask it to do

Inspect a deck

  • List the slides of this presentation and what's on each one.
  • Read the speaker notes for slide 5.
  • Render a thumbnail of the title slide.

Build and rearrange slides

  • Create a presentation for the Q3 review.
  • Add a “Roadmap” slide after the agenda, duplicate the template slide, move the summary to the end.
  • Insert an image from a URL or a local file, add a 4×3 table, create a text box or a rounded rectangle with its caption.

Write and polish text

  • Put this text into the title placeholder and make the deadline bold and red.
  • Replace “Q2” with “Q3” across the whole deck.
  • Rewrite the speaker notes of slide 3 to be shorter.

Review and hand off

  • List the open comment threads and reply to the first one, resolving it.
  • Delete the draft slide we no longer need.
  • Export the deck as PDF or PPTX for someone without Google access.

How a presentation changes

  1. create_presentation creates a deck with one title slide; only the title is honored at creation.
  2. Everything inside a deck — slides, shapes, images, tables — is addressed by object ids. list_slides is the compact inventory to start from before any edit.
  3. Edits go through the API's atomic batchUpdate: one invalid request voids the whole batch, so nothing is half-applied.
  4. Tool inputs are in points; the API stores EMU (1 pt = 12700 EMU). The server converts both ways.

The Slides API cannot delete, rename or share the presentation file — those are Drive file operations outside this server's scope. It cannot import a theme (only instantiate layouts the deck already has) and cannot anchor a new comment to a specific slide. Export is capped at 10 MB, and thumbnail URLs expire after about 30 minutes.

What can change

OperationWhat happensConfirmation boundary
Inspect a deck, page, notes or comments; render a thumbnail; export a fileReads data, writes only local filesNo change
Create a presentationAdds a new deck to your Google accountChanges Google Slides
Add, duplicate or move slides; create shapes, images, tablesAdds or rearranges deck contentChanges a deck
Set or style text, replace an image, transform an element, edit speaker notes or table structureOverwrites existing contentChanges a deck
Find & replace across the deckChanges every match at onceChanges a deck broadly
Delete a slide, element or comment threadRemoves content with no undo through the APIDestructive
Raw batchUpdate or raw API requestCan call API methods without a dedicated toolPotentially destructive

The AI client controls confirmation prompts. The server marks reads, writes and destructive tools so the client can distinguish an inspection from a live change.

Getting access

Google Slides requires OAuth 2.0; an API key is not enough. There are two ways in, and the first one needs no configuration files.

Connect from the chat (recommended)

Say "connect Google Slides" and the assistant runs the flow with you:

  1. setup_instructions prints the checklist: create or select a Google Cloud project, enable Google Slides API, configure the consent screen and create a Desktop app OAuth client.
  2. Download that client's JSON ("Download JSON") and give the assistant its path — set_client stores it owner-only. The secret never goes through the conversation.
  3. start_login returns a Google consent link. Open it on this machine and approve; the code comes back to a one-shot listener on 127.0.0.1 (PKCE), never through the chat.
  4. finish_login exchanges the code and saves the tokens to ~/.config/mcp-google-slides/credentials.json (mode 0600).

The tokens are re-read on every call, so the connection works immediately — no restart of the AI app. auth_status shows what is connected, logout revokes and deletes it.

Environment variables (CI, unattended installs)

  1. Create or select a Google Cloud project and enable Google Slides API. Enable Google Drive API too if you want comments, export or local-image upload.

  2. Configure the OAuth consent screen and create a Desktop app OAuth client.

  3. Authorize the Google account that owns or can edit the presentations. The OAuth 2.0 Playground can obtain the refresh token when Use your own OAuth credentials is enabled.

  4. Request the scopes:

    text
    https://www.googleapis.com/auth/presentationshttps://www.googleapis.com/auth/drive.file

    presentations covers all Slides reads and writes. drive.file covers local-image upload plus comments and export on decks created through this app; request the broader https://www.googleapis.com/auth/drive instead when you need comments or export on arbitrary presentations.

Testing-mode OAuth refresh tokens can expire after seven days. Publish the OAuth app, or use an Internal app in a Workspace domain, when you need long-lived access. Treat the client secret and refresh token as passwords.

Configuration

Every variable is optional — with none of them the server connects from the chat.

VariableRequiredDescription
GOOGLE_SLIDES_CLIENT_IDNo*OAuth client ID.
GOOGLE_SLIDES_CLIENT_SECRETNo*OAuth client secret.
GOOGLE_SLIDES_REFRESH_TOKENNo*OAuth refresh token.
GOOGLE_SLIDES_ACCESS_TOKENNo*Short-lived (~1 h) alternative to the OAuth trio.
GOOGLE_SLIDES_OAUTH_PORTNoFixed loopback port for the in-chat login; useful over SSH port forwarding.
GOOGLE_SLIDES_API_BASENoGoogle Slides API base URL override.
GOOGLE_SLIDES_DRIVE_API_BASENoGoogle Drive API base URL override (internal dependency: comments, export, image upload).
GOOGLE_SLIDES_TIMEOUT_MSNoPer-request timeout; default 60000 ms.
GOOGLE_SLIDES_MAX_RETRIESNoTemporary-error retries; default 3.

* Provide either the OAuth trio or an access token.

Data, limits and background work

  • Requests go to Google Slides. The local server refreshes Google OAuth tokens and calls the Slides API; comments, export and local-image upload ride the Drive API, scoped to the one presentation file. Its anonymous telemetry contains an installation ID, package version, AI client and platform versions, and tool names — never OAuth tokens, presentation content, tool arguments or prompts. For each tool call it also sends the outcome and, on failure, an excerpt of the error text with e-mails, addresses, tokens, numbers of 4+ digits and quoted text replaced by #; a value from your request can appear in it if the error text contains it. Set ASKADS_TELEMETRY=0 to opt out.
  • Google applies rate limits. On 429, the server uses backoff; reads also retry after network and 5xx errors, while writes are not replayed after an uncertain failure. Thumbnails count against a more expensive read quota.
  • There is no background polling. The server runs only when called. Nothing watches a deck between calls; if your AI app supports scheduled tasks, it can check a presentation periodically.

Technical documentation

Support

Found a bug or need a scenario? Create an issue or write in Telegram.


[Две Моны дают пять]

You made it to the end!

來源:README.md,提交 9ff7327

工具

32

auth_status

Google connection status

Shows whether this server is connected to Google: token presence and source (env variables or a stored in-chat login), expiry, the Google account email, granted vs missing OAuth scopes, where the credentials file lives and where the OAuth client comes from. Makes no network calls and never returns the token itself. Call it first when other tools report the server is not connected.

無需輸入參數。

setup_instructions

Setup instructions

Step-by-step checklist for connecting this server to Google: creating a Google Cloud project and a Desktop-app OAuth client, publishing the consent screen (mandatory — Testing-mode refresh tokens die after 7 days), downloading the client JSON and handing its PATH to set_client. Works without any credentials; the checklist shortens to 'enable the API + log in' when an OAuth client is already configured (one client serves the whole mcp-google-* line). Never asks the user to paste secrets into the chat.

無需輸入參數。

set_client

Save the OAuth client

Saves the OAuth client credentials from the JSON file downloaded from Google Cloud Console ('Download JSON' on a Desktop-app client). Pass the file PATH — the secret must never be pasted into the chat. The client is stored once in the shared ~/.config/mcp-google-auth/client.json (owner-only) and reused by every mcp-google-* server; tokens stay per-server. After this, call start_login.

輸入參數path必填

start_login

Start the Google login

First step of connecting from the chat, without editing config files or restarting the client. Returns authorizeUrl — show it to the user as a clickable link and ask them to open it in the browser ON THIS MACHINE, pick the Google account and approve access. A one-shot listener on 127.0.0.1 catches Google's redirect; the code is exchanged locally and never passes through the chat. Does not open the browser itself. The attempt lives 10 minutes; when the browser shows the success page, call finish_login.

無需輸入參數。

finish_login

Finish the Google login

Second step: waits up to 20 s for the browser consent to finish, saves the tokens to an owner-only file and verifies the login with a read-only identity call, returning the account email and the granted scopes. After success every tool works immediately — no client restart. If the user granted only part of the requested permissions, the login is still saved and missingScopes lists what will not work. Logging in under a different Google account replaces the previous login (its refresh token is revoked best-effort) and the response carries previousAccountEmail so the change never goes unnoticed.

無需輸入參數。

logout

Disconnect from Google

Revokes the stored token at Google (oauth2.googleapis.com/revoke) and deletes the local credentials file. Tokens supplied via env variables are NOT touched — remove them from the MCP client config manually; envTokenStillSet in the response says whether any are still in effect.

無需輸入參數。

create_presentation

Create a presentation

Creates a new Google Slides presentation and returns it (presentationId, revisionId, pageSize, the initial title slide with its object ids, layouts and masters). The API honors only the title at creation — add slides with add_slide, content with the text/shape/table/image tools. The new deck starts with one title slide and belongs to the authorized user's Drive. Note: this server cannot delete a presentation; removing the file is a Drive operation outside its scope.

輸入參數title必填

get_presentation

Get a presentation

Returns the raw presentation JSON: slides[] with every page element (shapes, text runs, tables, images), layouts[], masters[], notesMaster, pageSize (EMU: 1 pt = 12700 EMU) and revisionId. WARNING: a full deck is often hundreds of kilobytes — prefer list_slides for an inventory, and pass fields (a Google fields mask, e.g. "slides(objectId,pageElements(objectId,shape(text)))") to trim this response when you need raw detail.

輸入參數fieldspresentation_id必填

list_slides

List slides (compact inventory)

Compact inventory of the deck — the read to start from: presentationId, title, revisionId, pageSizePt, slideCount and per slide its 0-based index, objectId, layoutObjectId, speakerNotesObjectId and elements[] with each element's objectId, type (shape type / table RxC / image / video / line / group), placeholder role and visible text (truncated to 160 chars). All mutation tools address these object ids, so call this before editing; per-element geometry and full text need get_presentation or get_page.

輸入參數presentation_id必填

get_page

Get one page

Returns one page in full by its object id — works for slides, layouts, masters and notes pages alike. For a slide the response includes slideProperties.notesPage (the speaker-notes page) and every pageElement with its size, transform (EMU: 1 pt = 12700 EMU) and complete text. Use it when list_slides' summary is not enough for one page but the whole deck via get_presentation would be too much.

輸入參數page_object_id必填presentation_id必填

batch_update

Raw batchUpdate

Sends raw Slides API batchUpdate requests for anything the typed tools don't cover: updateShapeProperties (fill, outline, shadow), updatePageProperties (slide background), updateParagraphStyle, createParagraphBullets, updateTableCellProperties, mergeTableCells, createVideo, createLine, groupObjects, updateSlideProperties and the rest of the request union. requests is the API's requests[] array verbatim, e.g. [{"updateShapeProperties":{"objectId":"...","shapeProperties":{...},"fields":"shapeFill"}}]. The batch is atomic: one invalid request rejects the whole batch and nothing is applied. Lengths/coordinates take {"magnitude":N,"unit":"PT"}; wire enums are UPPER_CASE.

輸入參數requests必填presentation_id必填

add_slide

Add a slide

Adds a slide (batchUpdate createSlide) and returns the new slide's objectId in the reply. Pick the look with either predefined_layout (BLANK, TITLE, TITLE_AND_BODY, SECTION_HEADER, ...) or layout_object_id from list_layouts — not both; with neither the slide copies the layout of the current last slide. insertion_index is the 0-based position (omitted = append at the end). Placeholders inherited from the layout arrive empty — find their object ids via list_slides, then fill them with set_text.

輸入參數object_idinsertion_indexpresentation_id必填layout_object_idpredefined_layout

duplicate_slide

Duplicate a slide

Duplicates a slide (batchUpdate duplicateObject) — the copy, with all its elements and speaker notes, lands immediately after the original and its new objectId comes back in the reply. Works on any page element id too (the copy lands on the same slide, slightly offset). Move the copy with move_slides afterwards if needed.

輸入參數presentation_id必填slide_object_id必填

move_slides

Move slides

Moves one or more slides to a new position (batchUpdate updateSlidesPosition). slide_object_ids must appear in their current deck order with no duplicates; insertion_index is the 0-based position BEFORE the move is applied (moving a slide down: index counts with the slide still in its old place). Use list_slides to see the current order first.

輸入參數insertion_index必填presentation_id必填slide_object_ids必填

delete_object

Delete a slide or element

Deletes a slide or a page element (shape, image, table, video, line, group) by object id — batchUpdate deleteObject. Deleting a slide removes all its elements and speaker notes; deleting a group removes its children. There is no undo through the API (version history lives in the Slides UI). It cannot delete the whole presentation — that is a Drive file operation outside this server.

輸入參數object_id必填presentation_id必填

list_layouts

List layouts and masters

Lists the presentation's theme building blocks: layouts[] (objectId, name like TITLE_AND_BODY, displayName, masterObjectId), masters[] and the notesMasterObjectId. Layout object ids feed add_slide's layout_object_id; the Slides API cannot import a new theme or change the master set — themes are chosen in the UI, this tool only reads what the deck already has.

輸入參數presentation_id必填

insert_text

Insert text

Inserts text into a shape or a table cell (batchUpdate insertText) at a 0-based character index (default 0 = the beginning). For a table cell pass row_index + column_index together. Text carries \n for new paragraphs; the target must be a shape that can hold text or a table — images and lines cannot. To REPLACE what's already there use set_text instead; to fill an empty layout placeholder this works directly (find its object id via list_slides).

輸入參數text必填object_id必填row_indexcolumn_indexinsertion_indexpresentation_id必填

set_text

Set (replace) text

Replaces the ENTIRE text of a shape or table cell: one atomic batch of deleteText(ALL) + insertText. If the target has no text yet the delete is skipped automatically, so it works on empty placeholders too. An empty text just clears the object. Replacing text drops per-character styling — restyle with update_text_style afterwards if needed. For a table cell pass row_index + column_index together.

輸入參數text必填object_id必填row_indexcolumn_indexpresentation_id必填

replace_text

Find & replace text

Finds and replaces every occurrence of a string across the whole deck — shapes and table cells on slides, and their speaker notes (batchUpdate replaceAllText). Scope it with page_object_ids to touch only specific slides. Matching is literal (no regex), case-sensitive by default (match_case=false to ignore case). Returns occurrencesChanged in the reply — 0 means nothing matched, check the exact wording with list_slides. The classic template flow: duplicate a template deck, then replace {{placeholders}}.

輸入參數find必填replace必填match_casepage_object_idspresentation_id必填

update_text_style

Style text

Styles the text of a shape or table cell (batchUpdate updateTextStyle): bold, italic, underline, strikethrough, font_family (e.g. "Roboto"), font_size_pt, foreground_color (#RRGGBB) and link_url. Only the provided fields change (the field mask is computed automatically); at least one is required. By default the whole text is styled; pass start_index + end_index (0-based character offsets, end exclusive) to style a range — get the offsets from get_page's textElements. For a table cell add row_index + column_index.

輸入參數bolditaliclink_urlend_indexobject_id必填row_indexunderlinefont_familystart_indexcolumn_indexfont_size_ptstrikethrough另有 2 個

create_shape

Create a shape

Creates a shape on a slide (batchUpdate createShape), optionally with its initial text in the same atomic batch. Types: text_box, rectangle, round_rectangle, ellipse, diamond, triangle, right_arrow, left_arrow, up_arrow, down_arrow, star, heart, cloud, callout — the API's other ~130 ShapeTypes go through batch_update. Position/size are in points ((0,0) is top-left; a default 16:9 slide is 720x405 pt); omitted geometry defaults to 300x80 pt at (50,50). Returns the shape's objectId in the reply. Fill/outline/shadow are not parameters here — style via batch_update updateShapeProperties; text styling via update_text_style.

輸入參數textx_pty_ptwidth_ptheight_ptobject_idshape_type必填page_object_id必填presentation_id必填

create_image

Insert an image

Inserts an image on a slide (batchUpdate createImage) from EITHER image_url — a public https URL Google's servers can fetch (validated: https-only, no private/local hosts, ≤2 kB; the image itself must be PNG/JPEG/GIF, ≤50 MB, ≤25 megapixels) — OR image_path, a local file that is checked by magic bytes, uploaded to Drive, shared by link for the fetch and DELETED from Drive right after (Slides stores its own copy, so the temp file is disposable; the result reports the cleanup). Omitted size keeps the image's native proportions fitted to the page; position/size are in points. Returns the image objectId in the reply.

輸入參數x_pty_ptwidth_ptheight_ptimage_urlobject_idimage_pathpage_object_id必填presentation_id必填

replace_image

Replace an image

Swaps the bitmap of an existing image element while keeping its frame, position and effects (batchUpdate replaceImage). The new picture comes from image_url or image_path with exactly the same validation/upload/cleanup rules as create_image. replace_method: center_inside (default — scales to fit inside the frame, keeping aspect) or center_crop (fills the frame, cropping the overflow).

輸入參數image_urlimage_pathreplace_methodimage_object_id必填presentation_id必填

update_transform

Move / scale an element

Moves and/or scales a page element (batchUpdate updatePageElementTransform). mode=absolute REPLACES the element's whole transform: translate_x_pt/translate_y_pt become the new top-left-ish origin and omitted scales default to 1 — NOT to the current values, so an absolute move of a scaled element also resets its scale unless you resend it. mode=relative multiplies onto the existing transform: translate shifts by the given points, scale 2 doubles the current size (scaling happens around the origin, which also shifts the element — for a simple move prefer relative translate only). Element geometry to reason from is in get_page.

輸入參數mode必填scale_xscale_yobject_id必填translate_x_pttranslate_y_ptpresentation_id必填

create_table

Create a table

Creates an empty rows x columns table on a slide (batchUpdate createTable) and returns its objectId in the reply. Fill cells with set_text / insert_text using row_index + column_index (0-based); restructure later with edit_table. Position/size are in points; omitted geometry lets the API pick a centered default. Cell styling (borders, background) goes through batch_update updateTableCellProperties.

輸入參數rows必填x_pty_ptcolumns必填width_ptheight_ptobject_idpage_object_id必填presentation_id必填

edit_table

Edit table structure

Restructures an existing table in one call. action=insert_rows needs row_index (+optional below, default true, and count 1-20); insert_columns needs column_index (+optional right, default true, and count); delete_row needs row_index and delete_column needs column_index — deletion permanently discards the cells' content, and the remaining rows/columns shift so indexes change between successive edits (re-check with list_slides). Cell TEXT is written with set_text/insert_text (row_index + column_index), not here.

輸入參數belowcountrightaction必填row_indexcolumn_indexpresentation_id必填table_object_id必填

get_speaker_notes

Get speaker notes

Returns a slide's speaker notes as plain text, plus the speakerNotesObjectId (the text shape on the slide's hidden notes page). The lookup fetches the slide's notes page internally, so you only need the slide's object id from list_slides. An empty string means the slide has no notes yet. Notes text is also searched by replace_text.

輸入參數presentation_id必填slide_object_id必填

set_speaker_notes

Set speaker notes

Replaces a slide's speaker notes with the given text (empty string clears them). The tool resolves the slide's speakerNotesObjectId internally and rewrites that shape atomically — you pass the slide's object id, not the notes shape id. Notes are visible in the presenter view and exported by format txt; use \n for paragraphs.

輸入參數text必填presentation_id必填slide_object_id必填

manage_comments

Manage comments

Comment threads on the presentation file (served by the Drive API internally — scoped to this one file, no generic Drive access). action=list returns comments with replies and resolved status (pageSize/page_token to paginate, include_deleted for tombstones); get needs comment_id; create needs content and starts a new unanchored thread (the API cannot anchor a new comment to a specific slide or shape); reply needs comment_id + content and/or resolve=true (resolve closes the thread); delete needs comment_id and permanently removes the thread with all replies. Requires a Drive scope on the OAuth token (https://www.googleapis.com/auth/drive) — a presentations-only token gets a 403 here.

輸入參數action必填contentresolvepage_sizecomment_idpage_tokeninclude_deletedpresentation_id必填

get_thumbnail

Get a slide thumbnail

Renders one page (slide, layout or master) as a PNG. Without output_path it returns contentUrl + width/height — the URL is short-lived (~30 minutes) and served from googleusercontent.com. With output_path the PNG is downloaded and saved to that local file instead (the download is restricted to Google's image hosts). size: large (1600px, default), medium (800px) or small (200px). This is the way to SEE what a slide actually looks like — the JSON never shows rendering. Counts as an expensive read in the API quota.

輸入參數sizeoutput_pathpage_object_id必填presentation_id必填

export_presentation

Export the presentation

Downloads the whole presentation as pdf, pptx, odp or txt (txt = all text incl. speaker notes) and saves it to output_path, overwriting an existing file. Served by the Drive export endpoint internally, which caps exports at 10 MB — a bigger deck fails with an export-size error (split it or use the Slides UI). Requires a Drive scope on the OAuth token (drive.readonly is enough; presentations-only gets a 403). Returns saved_to, bytes and mime_type; nothing in the presentation changes.

輸入參數format必填output_path必填presentation_id必填

raw_request

Raw Google Slides API call

Escape hatch to call any Google Slides API v1 path directly, for requests even batch_update doesn't cover — e.g. GET "v1/presentations/<id>/pages/<pageId>" with a custom fields mask in the query string, or a POST with a body shaped differently from the typed tools. The Slides API only has GET and POST endpoints; the path is relative to https://slides.googleapis.com and may carry a query string. The Bearer token is added automatically; a path resolving to a foreign origin is rejected. Drive endpoints (comments, export) are NOT reachable here — use manage_comments / export_presentation.

輸入參數bodypath必填method

版本歷史

6
  1. v1.1.2最新Nov 5, 2026
  2. v1.1.1Oct 31, 2026
  3. v1.1.0Oct 31, 2026
  4. v1.0.0Sep 23, 2026
  5. v0.2.0Sep 21, 2026
  6. v0.1.0Sep 16, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分