Add Image
add_imageInserts an image into a PowerPoint slide from a local file path or base64 string while preserving aspect ratio within a defined bounding box.
Instructions
Insert an image into a slide from a local file path or base64 string.
Automatically preserves aspect ratio within the specified bounding box (left, top, max_width, max_height).
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": {
"slide_index": "<slide_index>"
},
"name": "add_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Top coordinate of bounding box in inches | |
| left | No | Left coordinate of bounding box in inches | |
| auto_save | No | Whether to automatically save changes to file_path on disk | |
| file_path | No | Path to presentation file within sandbox | |
| max_width | No | Maximum allowable width in inches | |
| image_path | No | Path to image file within allowed directory sandbox | |
| max_height | No | Maximum allowable height in inches | |
| slide_index | Yes | 0-based index of slide to place image on | |
| image_base64 | No | Base64 encoded image string (e.g. from matplotlib or camera) | |
| presentation_id | No | In-memory presentation ID | |
| preserve_aspect_ratio | No | Whether to lock aspect ratio and fit cleanly in bounding box |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||