Create and edit presentations with slides, shapes, text, and images programmatically
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.
Required:
action
- The operation to perform on presentationsRetrieve presentation details including slides and elements
Parameters:
presentation-id
(required) - The ID of the presentationExample:
Response:
Add a new slide to an existing presentation
Parameters:
presentation-id
(required) - The ID of the presentationlayout
(required) - Slide layout type: TITLE_AND_BODY, TITLE_ONLY, BLANK, SECTION_HEADER, or TITLE_AND_TWO_COLUMNSposition
(optional) - Insertion index for the slideExample:
Response:
Add or update text in a shape or text box
Parameters:
presentation-id
(required) - The ID of the presentationobject-id
(required) - The ID of the text box or shapetext
(required) - Text content to insertposition
(optional) - Insertion index within the text (default: 0)Example:
Response:
Add a new shape to a slide
Parameters:
presentation-id
(required) - The ID of the presentationslide-id
(required) - The ID of the slideshape-type
(required) - Type of shape: RECTANGLE, ELLIPSE, or other supported typeswidth
(required) - Width in pointsheight
(required) - Height in pointsx-position
(required) - X coordinate in pointsy-position
(required) - Y coordinate in pointsExample:
Response:
Modify the background color of an existing shape
Parameters:
presentation-id
(required) - The ID of the presentationobject-id
(required) - The ID of the shapered
(required) - Red color value (0-1)green
(required) - Green color value (0-1)blue
(required) - Blue color value (0-1)Example:
Response:
Add an image from URL to a slide
Parameters:
presentation-id
(required) - The ID of the presentationslide-id
(required) - The ID of the slideimage-url
(required) - URL of the image to insertwidth
(required) - Width in pointsheight
(required) - Height in pointsx-position
(required) - X coordinate in pointsy-position
(required) - Y coordinate in pointsExample:
Response:
Remove an element from a slide
Parameters:
presentation-id
(required) - The ID of the presentationobject-id
(required) - The ID of the element to deleteExample:
Response:
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.