insert_image
Add an image to a PowerPoint slide from a file path, URL, or base64 data, optionally choosing the slide and setting its position and size.
Instructions
Inserts an image onto a slide using Office.js setSelectedDataAsync with CoercionType.Image. Accepts a file path, URL, or raw base64 data. Optionally target a specific slide (the view stays there so the user sees the insert; call show_slide first per the view etiquette) and control position/size in points.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Vertical position in points | |
| left | No | Horizontal position in points (1 point = 1/72 inch) | |
| color | No | Hex color to tint SVG images (e.g. "#FF5733"). Only applies to SVG sources. Works best with mono/outline icons. | |
| width | No | Image width in points | |
| height | No | Image height in points | |
| source | Yes | File path, URL, or base64 image data depending on sourceType | |
| slideIndex | No | Zero-based slide index to navigate to before inserting. If omitted, inserts on the currently active slide. | |
| sourceType | Yes | How to interpret source: "file" reads from disk, "url" fetches from network, "base64" uses data directly | |
| presentationId | No | Target presentation ID from list_presentations. Optional when only one presentation is connected. |