insert_image
Insert an image into a specific cell of an Excel worksheet, with optional width and height adjustments.
Instructions
Insert an image into a worksheet anchored at a target cell.
Args: file_path: Workbook path to modify. sheet: Worksheet name. image_path: Path to image (PNG/JPG/GIF). cell: Anchor cell where image is placed. width: Optional width in Excel units. height: Optional height in Excel units.
Returns: dict: Metadata about the inserted image (anchor, size, file used).
Notes: - Mutates workbook and depends on Pillow. Document supported image formats and sizing behaviour.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell | Yes | ||
| sheet | Yes | ||
| width | No | ||
| height | No | ||
| file_path | Yes | ||
| image_path | Yes |