插入图片
insert_imageInserts a local PNG, JPG, or GIF image into an Excel worksheet, anchoring it at a specified cell with customizable pixel dimensions. Use this tool to embed visual content directly into spreadsheets.
Instructions
把一张本地图片(png / jpg / gif)插入工作表,图片左上角锚定在 anchorCell。width/height 为像素,不传给默认 300×200——比例不对时请显式传这两个值。csv 不支持插图。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| height | No | ||
| filePath | Yes | Excel 文件的绝对路径,例如 `C:\Users\xx\报表.xlsx` 或 `/Users/xx/报表.xlsx`。支持 .xlsx / .xls / .csv | |
| imagePath | Yes | ||
| sheetName | Yes | ||
| anchorCell | Yes | 单元格地址,如 `B5` |