insert_image
Insert an image onto a live PowerPoint slide from a file path, URL, or base64 data, with optional slide targeting and point-based position or size control.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>",
"sourceType": "<sourceType>"
},
"name": "insert_image"
}
}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. | |
| slide | No | Slide number, 1-based (slide 1 = first slide), to navigate to before inserting. If omitted, inserts on the currently active slide. | |
| width | No | Image width in points | |
| height | No | Image height in points | |
| source | Yes | File path, URL, or base64 image data depending on sourceType | |
| 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. |