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)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "google_slides-format-paragraph",
"configured_props": {
"google_slides": { "authProvisionId": "apn_xxxxxxx" },
"presentationId": "Presentation ID",
"objectId": "Page Element ID"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "google_slides",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "google_slides-format-paragraph",
arguments: {
presentationId: "Presentation ID",
objectId: "Page Element ID",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| 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
- Source
- View on GitHub ↗