Google Slides
Read, write, and create presentations
Integrate Google Slides into the workflow. Can read, write, create presentations, replace text, add slides, add images, get thumbnails, get page details, delete objects, duplicate objects, reorder slides, create tables, create shapes, and insert text.
| Parameter | Type | Required | Description |
|---|
presentationId | string | Yes | No description |
| Parameter | Type | Description |
|---|
slides | json | Array of slides with their content |
metadata | json | Presentation metadata including ID, title, and URL |
↳ presentationId | string | The presentation ID |
↳ title | string | The presentation title |
↳ pageSize | object | Presentation page size |
↳ width | json | Page width as a Dimension object |
↳ height | json | Page height as a Dimension object |
↳ mimeType | string | The mime type of the presentation |
↳ url | string | URL to open the presentation |
| Parameter | Type | Required | Description |
|---|
presentationId | string | Yes | No description |
content | string | Yes | No description |
slideIndex | number | No | No description |
| Parameter | Type | Description |
|---|
updatedContent | boolean | Indicates if presentation content was updated successfully |
metadata | json | Updated presentation metadata including ID, title, and URL |
↳ presentationId | string | The presentation ID |
↳ title | string | The presentation title |
↳ mimeType | string | The mime type of the presentation |
↳ url | string | URL to open the presentation |
| Parameter | Type | Required | Description |
|---|
title | string | Yes | No description |
content | string | No | No description |
folderSelector | string | No | No description |
folderId | string | No | No description |
| Parameter | Type | Description |
|---|
metadata | json | Created presentation metadata including ID, title, and URL |
↳ presentationId | string | The presentation ID |
↳ title | string | The presentation title |
↳ mimeType | string | The mime type of the presentation |
↳ url | string | URL to open the presentation |
| Parameter | Type | Required | Description |
|---|
presentationId | string | Yes | No description |
findText | string | Yes | No description |
replaceText | string | Yes | No description |
matchCase | boolean | No | No description |
pageObjectIds | string | No | Comma-separated list of slide object IDs to limit replacements to specific slides (leave empty for all slides) |
| Parameter | Type | Description |
|---|
occurrencesChanged | number | Number of text occurrences that were replaced |
metadata | json | Operation metadata including presentation ID and URL |
↳ presentationId | string | The presentation ID |
↳ findText | string | The text that was searched for |
↳ replaceText | string | The text that replaced the matches |
↳ url | string | URL to open the presentation |
| Parameter | Type | Required | Description |
|---|
presentationId | string | Yes | No description |
layout | string | No | The predefined layout for the slide (BLANK, TITLE, TITLE_AND_BODY, TITLE_ONLY, SECTION_HEADER, etc.). Defaults to BLANK. |
insertionIndex | number | No | The optional zero-based index indicating where to insert the slide. If not specified, the slide is added at the end. |
placeholderIdMappings | string | No | JSON array of placeholder mappings to assign custom object IDs to placeholders. Format: [{"layoutPlaceholder":{"type":"TITLE"},"objectId":"custom_title_id"}] |
| Parameter | Type | Description |
|---|
slideId | string | The object ID of the newly created slide |
metadata | json | Operation metadata including presentation ID, layout, and URL |
↳ presentationId | string | The presentation ID |
↳ layout | string | The layout used for the new slide |
↳ insertionIndex | number | The zero-based index where the slide was inserted |
↳ url | string | URL to open the presentation |
| Parameter | Type | Required | Description |
|---|
presentationId | string | Yes | No description |
pageObjectId | string | Yes | No description |
imageUrl | string | Yes | No description |
width | number | No | No description |
height | number | No | No description |
positionX | number | No | No description |
positionY | number | No | No description |
| Parameter | Type | Description |
|---|
imageId | string | The object ID of the newly created image |
metadata | json | Operation metadata including presentation ID and image URL |
↳ presentationId | string | The presentation ID |
↳ pageObjectId | string | The page object ID where the image was inserted |
↳ imageUrl | string | The source image URL |
↳ url | string | URL to open the presentation |
| Parameter | Type | Required | Description |
|---|
presentationId | string | Yes | No description |
pageObjectId | string | Yes | No description |
thumbnailSize | string | No | The size of the thumbnail: SMALL (200px), MEDIUM (800px), or LARGE (1600px). Defaults to MEDIUM. |
mimeType | string | No | No description |
| Parameter | Type | Description |
|---|
contentUrl | string | URL to the thumbnail image (valid for 30 minutes) |
width | number | Width of the thumbnail in pixels |
height | number | Height of the thumbnail in pixels |
metadata | json | Operation metadata including presentation ID and page object ID |
↳ presentationId | string | The presentation ID |
↳ pageObjectId | string | The page object ID for the thumbnail |
↳ thumbnailSize | string | The requested thumbnail size |
↳ mimeType | string | The thumbnail MIME type |
Get detailed information about a specific slide/page in a Google Slides presentation
| Parameter | Type | Required | Description |
|---|
presentationId | string | Yes | No description |
pageObjectId | string | Yes | No description |
| Parameter | Type | Description |
|---|
objectId | string | The object ID of the page |
pageType | string | The type of page (SLIDE, MASTER, LAYOUT, NOTES, NOTES_MASTER) |
pageElements | array | Array of page elements (shapes, images, tables, etc.) on this page |
slideProperties | object | Properties specific to slides (layout, master, notes) |
↳ layoutObjectId | string | Object ID of the layout this slide is based on |
↳ masterObjectId | string | Object ID of the master this slide is based on |
↳ notesPage | json | The notes page associated with the slide |
metadata | object | Operation metadata including presentation ID and URL |
↳ presentationId | string | The presentation ID |
↳ url | string | URL to the presentation |
Delete a page element (shape, image, table, etc.) or an entire slide from a Google Slides presentation
| Parameter | Type | Required | Description |
|---|
presentationId | string | Yes | No description |
objectId | string | Yes | No description |
| Parameter | Type | Description |
|---|
deleted | boolean | Whether the object was successfully deleted |
objectId | string | The object ID that was deleted |
metadata | object | Operation metadata including presentation ID and URL |
↳ presentationId | string | The presentation ID |
↳ url | string | URL to the presentation |
Duplicate an object (slide, shape, image, table, etc.) in a Google Slides presentation
| Parameter | Type | Required | Description |
|---|
presentationId | string | Yes | No description |
objectId | string | Yes | No description |
objectIds | string | No | Optional JSON object mapping source object IDs (within the slide being duplicated) to new object IDs for the duplicates. Format: {"sourceId1":"newId1","sourceId2":"newId2"} |
| Parameter | Type | Description |
|---|
duplicatedObjectId | string | The object ID of the newly created duplicate |
metadata | object | Operation metadata including presentation ID and source object ID |
↳ presentationId | string | The presentation ID |
↳ sourceObjectId | string | The original object ID that was duplicated |
↳ url | string | URL to the presentation |
| Parameter | Type | Required | Description |
|---|
presentationId | string | Yes | No description |
slideObjectIds | string | Yes | Comma-separated list of slide object IDs to move. The slides will maintain their relative order. |
insertionIndex | number | Yes | The zero-based index where the slides should be moved. All slides with indices greater than or equal to this will be shifted right. |
| Parameter | Type | Description |
|---|
moved | boolean | Whether the slides were successfully moved |
slideObjectIds | array | The slide object IDs that were moved |
insertionIndex | number | The index where the slides were moved to |
metadata | object | Operation metadata including presentation ID and URL |
↳ presentationId | string | The presentation ID |
↳ url | string | URL to the presentation |
| Parameter | Type | Required | Description |
|---|
presentationId | string | Yes | No description |
pageObjectId | string | Yes | No description |
rows | number | Yes | No description |
columns | number | Yes | No description |
width | number | No | No description |
height | number | No | No description |
positionX | number | No | No description |
positionY | number | No | No description |
| Parameter | Type | Description |
|---|
tableId | string | The object ID of the newly created table |
rows | number | Number of rows in the table |
columns | number | Number of columns in the table |
metadata | object | Operation metadata including presentation ID and page object ID |
↳ presentationId | string | The presentation ID |
↳ pageObjectId | string | The page object ID where the table was created |
↳ url | string | URL to the presentation |
Create a shape (rectangle, ellipse, text box, arrow, etc.) on a slide in a Google Slides presentation
| Parameter | Type | Required | Description |
|---|
presentationId | string | Yes | No description |
pageObjectId | string | Yes | No description |
shapeType | string | Yes | The type of shape to create. Common types: TEXT_BOX, RECTANGLE, ROUND_RECTANGLE, ELLIPSE, TRIANGLE, DIAMOND, STAR_5, ARROW_EAST, HEART, CLOUD |
width | number | No | No description |
height | number | No | No description |
positionX | number | No | No description |
positionY | number | No | No description |
| Parameter | Type | Description |
|---|
shapeId | string | The object ID of the newly created shape |
shapeType | string | The type of shape that was created |
metadata | object | Operation metadata including presentation ID and page object ID |
↳ presentationId | string | The presentation ID |
↳ pageObjectId | string | The page object ID where the shape was created |
↳ url | string | URL to the presentation |
Insert text into a shape or table cell in a Google Slides presentation. Use this to add text to text boxes, shapes, or table cells.
| Parameter | Type | Required | Description |
|---|
presentationId | string | Yes | No description |
objectId | string | Yes | The object ID of the shape or table cell to insert text into. For table cells, use the cell object ID. |
text | string | Yes | No description |
insertionIndex | number | No | The zero-based index at which to insert the text. If not specified, text is inserted at the beginning (index 0). |
| Parameter | Type | Description |
|---|
inserted | boolean | Whether the text was successfully inserted |
objectId | string | The object ID where text was inserted |
text | string | The text that was inserted |
metadata | object | Operation metadata including presentation ID and URL |
↳ presentationId | string | The presentation ID |
↳ url | string | URL to the presentation |