Connect the Google Slides MCP server to your AI agent Open source, MIT, on npm. Setup instructions for Claude, Cursor and Codex are in the repository; adoption questions — Telegram. GitHub repository Telegram

Google Slides: Set (replace) text — MCP tool

Google Slides MCP tool: Replaces the ENTIRE text of a shape or table cell: one atomic batch of deleteText(ALL) + insertText.

Technical name: set_text

What task it solves

I want to replace the text of a shape or table cell.

Replaces the ENTIRE text of a shape or table cell: one atomic batch of deleteText(ALL) + insertText.

When to use it

Use this capability when you need “Set (replace) text” without doing the same work manually in the Google Slides interface. It runs only when an AI client calls it.

What to provide

  • presentation_idrequired. The presentation id — the long id from the URL (docs.google.com/presentation/d/<presentationId>/edit) or from create_presentation output.
  • object_idrequired. The shape or table object id (from list_slides).
  • textrequired. The new full text; empty string clears the object. \n starts a new paragraph.
  • row_indexoptional. Table cell row (0-based; requires column_index).
  • column_indexoptional. Table cell column (0-based; requires row_index).

What it returns

Returns compact JSON from the upstream API or a clear MCP tool error. The exact fields depend on the operation and are documented in the technical reference.

What changes in Google Slides

The source marks the entire “Set (replace) text” call as destructive: it can permanently remove or overwrite existing content. Review the parameters and reversibility before calling it.

Example request

Set (replace) text in Google Slides. Ask for any required identifiers that are missing. Show me the exact change and wait for confirmation first.

Errors and limitations

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.

Access also depends on token permissions, quotas, and upstream API limits.

Related MCP tools

Technical details