insert_image
Insert an image at a specified cell, optionally resize by width or height. Supports PNG, JPG, GIF, BMP formats and embeds the image into the workbook.
Instructions
Insert a picture with its top-left corner at the given cell.
Supports png, jpg, gif, bmp. Give width_px and/or height_px to resize; a single dimension scales proportionally. The image file is embedded in the workbook, so the source file is not needed afterwards.
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": {
"session_id": "<session_id>",
"image_path": "<image_path>",
"cell": "<cell>"
},
"name": "insert_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell | Yes | ||
| width_px | No | ||
| height_px | No | ||
| image_path | Yes | ||
| session_id | Yes |