wps_wpp_insert_image
Insert an image into a WPS slide using a file path, with configurable position, size, and target slide index. Defaults to the current slide when slide_index is omitted.
Instructions
向指定幻灯片插入图片。不传 slide_index 则用当前选中页。注意:WPS 沙盒只授权读取 ~/Downloads、或曾被 Finder/shell "open" 打开过的文件;图片路径若未被授权,可能被系统静默拦截导致插入失败或插入空白,建议图片放在 ~/Downloads 下。
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": {
"path": "<path>"
},
"name": "wps_wpp_insert_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Y 坐标(默认 100) | |
| left | No | X 坐标(默认 100) | |
| path | Yes | 图片文件绝对路径 | |
| width | No | 宽度(默认按图片原始比例缩放) | |
| height | No | 高度(默认按图片原始比例缩放) | |
| slide_index | No | 幻灯片序号(默认当前页) |