insert_slides_image
Insert an image from a public URL onto a Google Slide. Returns the image's object ID for repositioning, resizing, or deleting.
Instructions
Insert an image onto a slide from a publicly accessible URL.
Google Slides fetches the image from the URL at insert time and embeds a reference in the presentation. The URL must be publicly accessible (or accessible to Google's servers) at the moment of the call — private Drive URLs, signed URLs, and localhost URLs will fail. Supported formats: PNG, JPEG, GIF (Slides does not embed SVG).
Requires OAuth scope: https://www.googleapis.com/auth/presentations (write).
Returns the new image's object ID so you can reference it later (reposition,
resize, delete, etc.). Image size limit: 50 MB, 25 megapixels.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | ||
| presentation_id | Yes | Google Slides presentation ID (from the URL after `/d/`). | |
| page_object_id | Yes | Object ID of the slide to place the image on. Get it from `get_presentation.slides[].objectId`. | |
| image_url | Yes | Publicly accessible HTTPS URL pointing to a PNG/JPEG/GIF. Google fetches this URL server-side; must return the image bytes directly (no login walls, redirects to interstitial pages, etc.). | |
| left | No | X position (top-left corner) in EMUs (English Metric Units). Default `914400` EMU = 1 inch from the slide's left edge. Conversion: 1 inch = 914,400 EMU; 1 point = 12,700 EMU. | |
| top | No | Y position (top-left corner) in EMUs. Default `914400` = 1 inch down. | |
| width | No | Image width in EMUs. Default `3000000` ≈ 3.28 inches. Image is stretched/compressed to this size; aspect ratio is NOT preserved automatically — compute width:height from the source image to avoid distortion. | |
| height | No | Image height in EMUs. Default `2000000` ≈ 2.19 inches. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |