Mandala
Tools

Google Slides

Read, write, and create presentations

Usage Instructions

Integrate Google Slides into the workflow. Can read, write, create presentations, replace text, add slides, add images, and get thumbnails.

Tools

google_slides_read

Read content from a Google Slides presentation

Input

ParameterTypeRequiredDescription
presentationIdstringYesThe ID of the presentation to read

Output

ParameterTypeDescription
slidesjsonArray of slides with their content
metadatajsonPresentation metadata including ID, title, and URL

google_slides_write

Write or update content in a Google Slides presentation

Input

ParameterTypeRequiredDescription
presentationIdstringYesThe ID of the presentation to write to
contentstringYesThe content to write to the slide
slideIndexnumberNoThe index of the slide to write to (defaults to first slide)

Output

ParameterTypeDescription
updatedContentbooleanIndicates if presentation content was updated successfully
metadatajsonUpdated presentation metadata including ID, title, and URL

google_slides_create

Create a new Google Slides presentation

Input

ParameterTypeRequiredDescription
titlestringYesThe title of the presentation to create
contentstringNoThe content to add to the first slide
folderSelectorstringNoSelect the folder to create the presentation in

Output

ParameterTypeDescription
metadatajsonCreated presentation metadata including ID, title, and URL

google_slides_replace_all_text

Find and replace all occurrences of text throughout a Google Slides presentation

Input

ParameterTypeRequiredDescription
presentationIdstringYesThe ID of the presentation
findTextstringYesThe text to find (e.g., {{placeholder}})
replaceTextstringYesThe text to replace with
matchCasebooleanNoWhether the search should be case-sensitive (default: true)
pageObjectIdsstringNoComma-separated list of slide object IDs to limit replacements to specific slides (leave empty for all slides)

Output

ParameterTypeDescription
occurrencesChangednumberNumber of text occurrences that were replaced
metadatajsonOperation metadata including presentation ID and URL

google_slides_add_slide

Add a new slide to a Google Slides presentation with a specified layout

Input

ParameterTypeRequiredDescription
presentationIdstringYesThe ID of the presentation
layoutstringNoThe predefined layout for the slide (BLANK, TITLE, TITLE_AND_BODY, TITLE_ONLY, SECTION_HEADER, etc.). Defaults to BLANK.
insertionIndexnumberNoThe optional zero-based index indicating where to insert the slide. If not specified, the slide is added at the end.
placeholderIdMappingsstringNoJSON array of placeholder mappings to assign custom object IDs to placeholders. Format: [{"layoutPlaceholder":{"type":"TITLE"},"objectId":"custom_title_id"}]

Output

ParameterTypeDescription
slideIdstringThe object ID of the newly created slide
metadatajsonOperation metadata including presentation ID, layout, and URL

google_slides_add_image

Insert an image into a specific slide in a Google Slides presentation

Input

ParameterTypeRequiredDescription
presentationIdstringYesThe ID of the presentation
pageObjectIdstringYesThe object ID of the slide/page to add the image to
imageUrlstringYesThe publicly accessible URL of the image (must be PNG, JPEG, or GIF, max 50MB)
widthnumberNoWidth of the image in points (default: 300)
heightnumberNoHeight of the image in points (default: 200)
positionXnumberNoX position from the left edge in points (default: 100)
positionYnumberNoY position from the top edge in points (default: 100)

Output

ParameterTypeDescription
imageIdstringThe object ID of the newly created image
metadatajsonOperation metadata including presentation ID and image URL

google_slides_get_thumbnail

Generate a thumbnail image of a specific slide in a Google Slides presentation

Input

ParameterTypeRequiredDescription
presentationIdstringYesThe ID of the presentation
pageObjectIdstringYesThe object ID of the slide/page to get a thumbnail for
thumbnailSizestringNoThe size of the thumbnail: SMALL (200px), MEDIUM (800px), or LARGE (1600px). Defaults to MEDIUM.
mimeTypestringNoThe MIME type of the thumbnail image: PNG or GIF. Defaults to PNG.

Output

ParameterTypeDescription
contentUrlstringURL to the thumbnail image (valid for 30 minutes)
widthnumberWidth of the thumbnail in pixels
heightnumberHeight of the thumbnail in pixels
metadatajsonOperation metadata including presentation ID and page object ID

Notes

  • Category: tools
  • Type: google_slides
Google Slides