View as Markdown
Google Slides icon

Google Slides ACTION

Format Text

Apply character formatting (bold, italic, underline, strikethrough, font, size, color, link) to the text of a shape or table cell in a Google Slides presentation. Use Get Presentation to find the page element's object ID. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Google Slides account once, then configure and run Format Text from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "google_slides-format-text",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    google_slides: { authProvisionId: "apn_xxxxxxx" },
    presentationId: "Presentation ID",
    objectId: "Page Element ID",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Format Text inputs
Property Type Description
presentationId Presentation ID string
The ID of the presentation. This is the long string in the URL: https://docs.google.com/presentation/d/{PRESENTATION_ID}/edit. A full presentation URL is also accepted. Use Find Presentation to resolve a name to its ID.
Required
objectId Page Element ID string
The object ID of the shape or table whose text should be styled. Use Get Presentation and read slides[].pageElements[].objectId.
Required
rowIndex Table Row Index integer
Required only when Page Element ID refers to a table: the 0-based row of the cell to style.
Optional
columnIndex Table Column Index integer
Required only when Page Element ID refers to a table: the 0-based column of the cell to style.
Optional
startIndex Start Index integer
Character index to style from, inclusive. On its own, styles from here to the end of the text. Omit both indices to style all of it.
Optional
endIndex End Index integer
Character index to style up to, exclusive. Requires Start Index, and must be greater than it.
Optional
bold Bold boolean
Set true to bold the text, false to remove bold. Leave unset to keep it unchanged.
Optional
italic Italic boolean
Set true to italicize the text, false to remove italics. Leave unset to keep it unchanged.
Optional
underline Underline boolean
Set true to underline the text, false to remove the underline. Leave unset to keep it unchanged.
Optional
strikethrough Strikethrough boolean
Set true to strike through the text, false to remove it. Leave unset to keep it unchanged.
Optional
smallCaps Small Caps boolean
Set true to render the text in small capitals, false to return it to normal casing. Leave unset to keep it unchanged.
Optional
baselineOffset Baseline Offset string
Vertical offset from the normal baseline. SUPERSCRIPT and SUBSCRIPT are also rendered in a smaller font, computed from the current size.
Optional
fontSize Font Size integer
Font size in points (1-400).
Optional
fontFamily Font Family string
Font family name as it appears in the Slides font menu, e.g. Roboto.
Optional
foregroundColor Text Color string
Hex code (e.g. #FF0000) or one of the deck's theme colors (e.g. ACCENT1, DARK1).
Optional
backgroundColor Highlight Color string
Hex code (e.g. #FFFF00) or one of the deck's theme colors (e.g. ACCENT2).
Optional
link Link URL string
Turn the text into a hyperlink pointing at this URL.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
google_slides-format-text
Version
0.0.2
App
Google Slides
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes