View as Markdown
Google Slides icon

Google Slides ACTION

Create Page Element

Create a shape or text box on a slide. Size and position are in points (1/72 of an inch), measured from the top-left of the slide; a default 16:9 slide is 720 x 405 points, so an element placed outside that area is not visible. To add a title or body text, prefer Create Slide with Layout and the text set, which fills a layout's placeholders instead of positioning boxes by hand. Returns the new element's object ID in replies[0].createShape.objectId, for use with Insert Text. 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 Create Page Element 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-create-page-element",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    google_slides: { authProvisionId: "apn_xxxxxxx" },
    presentationId: "Presentation",
    slideId: "Slide 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.

Create Page Element inputs
Property Type Description
presentationId Presentation string
The Presentation ID
Required Dynamic
slideId Slide ID string
The ID of a slide
Required Dynamic
type Type string
The type of the shape. Use TEXT_BOX for a plain box of text.
Required
height Height integer
The height of the shape in points (1/72 of an inch)
Required
width Width integer
The width of the shape in points (1/72 of an inch)
Required
scaleX Scale X integer
Horizontal scale multiplier applied to the width (1 = unscaled).
Optional
scaleY Scale Y integer
Vertical scale multiplier applied to the height (1 = unscaled).
Optional
translateX Translate X integer
Horizontal position in points, measured from the top-left of the slide (e.g. 36 for a half-inch margin). A default 16:9 slide is 720 points wide.
Optional
translateY Translate Y integer
Vertical position in points, measured from the top-left of the slide (e.g. 36 for a half-inch margin). A default 16:9 slide is 405 points tall.
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-create-page-element
Version
0.0.8
App
Google Slides
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes