What can you do with it?

Google Slides allows you to create and modify presentations programmatically. You can get presentation details, create new slides with various layouts, insert and update text content, add shapes and images, modify element properties like colors and positions, and delete elements. This integration is perfect for automated presentation generation, dynamic content updates, and presentation templating workflows.

How to use it?

Basic Command Structure

/your-Google-Slides-connection [action] [required-parameters] [optional-parameters]

Parameters

Required:
  • action - The operation to perform on presentations

Tools

Get Presentation

Retrieve presentation details including slides and elements Parameters:
  • presentation-id (required) - The ID of the presentation
Example:
/your-Google-Slides-connection
action: get-presentation
presentation-id: 1ABC123def456
Response:
{
  "presentationId": "1ABC123def456",
  "title": "My Presentation",
  "slides": [
    {
      "objectId": "p1",
      "pageElements": [
        {
          "objectId": "text_box_1",
          "shape": {
            "shapeType": "TEXT_BOX",
            "text": {
              "textElements": [
                {
                  "textRun": {
                    "content": "Hello World!"
                  }
                }
              ]
            }
          }
        }
      ]
    }
  ]
}

Create Slide

Add a new slide to an existing presentation Parameters:
  • presentation-id (required) - The ID of the presentation
  • layout (required) - Slide layout type: TITLE_AND_BODY, TITLE_ONLY, BLANK, SECTION_HEADER, or TITLE_AND_TWO_COLUMNS
  • position (optional) - Insertion index for the slide
Example:
/your-Google-Slides-connection
action: create-slide
presentation-id: 1ABC123def456
layout: TITLE_AND_BODY
position: 1
Response:
{
  "presentationId": "1ABC123def456",
  "replies": [
    {
      "createSlide": {
        "objectId": "new_slide_id"
      }
    }
  ]
}

Insert Text

Add or update text in a shape or text box Parameters:
  • presentation-id (required) - The ID of the presentation
  • object-id (required) - The ID of the text box or shape
  • text (required) - Text content to insert
  • position (optional) - Insertion index within the text (default: 0)
Example:
/your-Google-Slides-connection
action: insert-text
presentation-id: 1ABC123def456
object-id: text_box_1
text: Welcome to our presentation!
position: 0
Response:
{
  "presentationId": "1ABC123def456",
  "replies": [{}]
}

Create Shape

Add a new shape to a slide Parameters:
  • presentation-id (required) - The ID of the presentation
  • slide-id (required) - The ID of the slide
  • shape-type (required) - Type of shape: RECTANGLE, ELLIPSE, or other supported types
  • width (required) - Width in points
  • height (required) - Height in points
  • x-position (required) - X coordinate in points
  • y-position (required) - Y coordinate in points
Example:
/your-Google-Slides-connection
action: create-shape
presentation-id: 1ABC123def456
slide-id: p1
shape-type: RECTANGLE
width: 100
height: 50
x-position: 100
y-position: 100
Response:
{
  "presentationId": "1ABC123def456",
  "replies": [
    {
      "createShape": {
        "objectId": "shape_1"
      }
    }
  ]
}

Update Shape Color

Modify the background color of an existing shape Parameters:
  • presentation-id (required) - The ID of the presentation
  • object-id (required) - The ID of the shape
  • red (required) - Red color value (0-1)
  • green (required) - Green color value (0-1)
  • blue (required) - Blue color value (0-1)
Example:
/your-Google-Slides-connection
action: update-shape-color
presentation-id: 1ABC123def456
object-id: shape_1
red: 1
green: 0
blue: 0
Response:
{
  "presentationId": "1ABC123def456",
  "replies": [{}]
}

Insert Image

Add an image from URL to a slide Parameters:
  • presentation-id (required) - The ID of the presentation
  • slide-id (required) - The ID of the slide
  • image-url (required) - URL of the image to insert
  • width (required) - Width in points
  • height (required) - Height in points
  • x-position (required) - X coordinate in points
  • y-position (required) - Y coordinate in points
Example:
/your-Google-Slides-connection
action: insert-image
presentation-id: 1ABC123def456
slide-id: p1
image-url: https://example.com/logo.jpg
width: 200
height: 100
x-position: 100
y-position: 100
Response:
{
  "presentationId": "1ABC123def456",
  "replies": [
    {
      "createImage": {
        "objectId": "image_1"
      }
    }
  ]
}

Delete Element

Remove an element from a slide Parameters:
  • presentation-id (required) - The ID of the presentation
  • object-id (required) - The ID of the element to delete
Example:
/your-Google-Slides-connection
action: delete-element
presentation-id: 1ABC123def456
object-id: shape_1
Response:
{
  "presentationId": "1ABC123def456",
  "replies": [{}]
}

Notes

Presentation IDs can be extracted from Google Slides URLs using the pattern: /d/[PRESENTATION_ID]/. Coordinates use points (PT) as units where 72 PT equals 1 inch. The origin (0,0) is at the top-left corner. Object IDs must be unique within a presentation. Batch operations can be performed by grouping multiple requests together. Maximum request size is 10MB.