View as Markdown
Google Slides icon

Google Slides ACTION

Format Paragraph

Apply paragraph formatting (alignment, line spacing, indentation, bullets) 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 Paragraph 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-paragraph",
  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 Paragraph 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 paragraphs 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
alignment Alignment string
Paragraph alignment. START is left-aligned in a left-to-right deck.
Optional
lineSpacing Line Spacing integer
Line spacing as a percentage of normal (100 = single, 150 = 1.5x). Range 1-1000.
Optional
spaceAbove Space Above integer
Space above each paragraph, in points (0-500).
Optional
spaceBelow Space Below integer
Space below each paragraph, in points (0-500).
Optional
indentStart Indent Start integer
Indentation from the start side, in points (0-500).
Optional
indentEnd Indent End integer
Indentation from the end side, in points (0-500).
Optional
indentFirstLine First Line Indent integer
Indentation of each paragraph's first line, in points (0-500).
Optional
direction Text Direction string
Reading direction of the paragraph. Unlike the other options this is not inherited, and defaults to LEFT_TO_RIGHT when unset.
Optional
spacingMode Spacing Mode string
How paragraph spacing is rendered. NEVER_COLLAPSE always renders it; COLLAPSE_LISTS skips it between list items.
Optional
bullets Bullets string
Apply a bullet or numbering preset to the paragraphs, or NONE to strip existing bullets. BULLET_* presets are unordered, NUMBERED_* are ordered.
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-paragraph
Version
0.0.2
App
Google Slides
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes